ts-prims
Version:
Typescript Primitives
23 lines • 623 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Memo = void 0;
const length_js_1 = require("./length.js");
const prim_js_1 = require("./prim.js");
/**
* The prim type constructor function for `memo`.
*
* Extends {@link Text}.
*
* ```ts
* import { type memo, Memo } from 'ts-prims'
*
* // narrow using cast
* let x: memo = 'Hello World!' as memo
* // or using runtime check by constructor
* x = Memo('Hello World!')
* ```
*
* @see {@link memo}
*/
exports.Memo = (0, prim_js_1.Prim)('memo', String, [(0, length_js_1.lengthConstraint)(11)]);
//# sourceMappingURL=memo.js.map