hkt-toolbelt
Version:
Functional and composable type utilities
18 lines (17 loc) • 359 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.never = void 0;
/**
* Given a value, return the `never` type.
*
* @param {unknown} x - The value to return.
*
* @example
* ```ts
* import { Type } from "hkt-toolbelt";
*
* const result = Type.never('ignored')
* // ^? never
* ```
*/
exports.never = undefined;