ts-prims
Version:
Typescript Primitives
18 lines • 469 B
JavaScript
import { lengthConstraint } from './length.js';
import { Prim } from './prim.js';
/**
* The prim type constructor function for `clob`
*
* ```ts
* import { type clob, Clob } from 'ts-prims'
*
* // narrow using cast
* let x: clob = 'Hello World!' as clob
* // or using runtime check by constructor
* x = Clob('Checked at runtime')
* ```
*
* @see {@link clob}
*/
export const Clob = Prim(`clob`, String, lengthConstraint(15));
//# sourceMappingURL=clob.js.map