UNPKG

@scalar/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

7 lines (6 loc) 243 B
import { Kind } from '../symbols/index.mjs'; import { CreateType } from '../create/index.mjs'; /** `[Json]` Creates a Boolean type */ export function Boolean(options) { return CreateType({ [Kind]: 'Boolean', type: 'boolean' }, options); }