UNPKG

@bemedev/types

Version:

Type definitions for Bemedev projects

19 lines (16 loc) 479 B
import { castFn } from '../utils.js'; import { commons } from './commons.js'; const booleans = castFn()({ is: (data) => typeof data === 'boolean', type: Boolean, true: castFn()({ CONST: true, is: commons.function.checker.dynamic(value => value === true), }), false: castFn()({ CONST: false, is: commons.function.checker.dynamic(value => value === false), }), }); export { booleans }; //# sourceMappingURL=booleans.js.map