bguard
Version:
**bguard** is a powerful, flexible, and type-safe validation library for TypeScript. It allows developers to define validation schemas for their data structures and ensures that data conforms to the expected types and constraints.
1 lines • 438 B
Source Map (JSON)
{"version":3,"sources":["../src/helpers/setStrictType.ts"],"sourcesContent":["import { ctxSymbol } from './constants';\nimport { type CommonSchema } from '../core';\n\nexport function _setStrictType(that: CommonSchema, val: unknown) {\n that[ctxSymbol].strictType = true;\n that[ctxSymbol].strictTypeValue = val;\n}\n"],"mappings":";;;;;AAGO,SAAS,eAAe,MAAoB,KAAc;AAC/D,OAAK,SAAS,EAAE,aAAa;AAC7B,OAAK,SAAS,EAAE,kBAAkB;AACpC;","names":[]}