Decompose monolithic readme into docs/ directory structure
This commit is contained in:
18
docs/syntax/noinfer.md
Normal file
18
docs/syntax/noinfer.md
Normal file
@@ -0,0 +1,18 @@
|
||||
[Overview](../overview.md) | [Installation](../installation.md) | [Usage](../usage.md) | [Types](../types/) | [Values](../values/) | **Syntax** | [TypeRegistry](../type-registry.md) | [TypeCheck](../type-check.md)
|
||||
|
||||
# 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.
|
||||
|
||||
```typescript
|
||||
import { NoInfer } from "@alkdev/typebox/syntax";
|
||||
|
||||
const T = NoInfer(`number | string`); // const T: TSchema = {
|
||||
// anyOf: [
|
||||
// { type: 'number' },
|
||||
// { type: 'string' }
|
||||
// ]
|
||||
// }
|
||||
```
|
||||
|
||||
Back to [Home](../../readme.md)
|
||||
Reference in New Issue
Block a user