Files
typebox/docs/syntax/noinfer.md

622 B

Home | Installation | Usage | Types | Values | Syntax | TypeRegistry | TypeCheck

NoInfer

Syntax parsing is an expensive type level operation and can impact on language service performance. Use the NoInfer function parse syntax at runtime only.

import { NoInfer } from "@alkdev/typebox/syntax";

const T = NoInfer(`number | string`); // const T: TSchema = {
//   anyOf: [
//     { type: 'number' },
//     { type: 'string' }
//   ]
// }

Back to Home