UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

13 lines (12 loc) 364 B
/** * @deprecated `[Json]` Omits compositing symbols from this schema. It is recommended * to use the JSON parse/stringify to remove compositing symbols if needed. This * is how Strict works internally. * * ```typescript * JSON.parse(JSON.stringify(Type.String())) * ``` */ export function Strict(schema) { return JSON.parse(JSON.stringify(schema)); }