typebox icon indicating copy to clipboard operation
typebox copied to clipboard

Json Schema Type Builder with Static Type Resolution for TypeScript

Results 48 typebox issues
Sort by recently updated
recently updated
newest added

Hey! Awesome work with this project and it's been massively helpful :) Could it be possible to define a type schema from a [TypeScript type predicate](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards)? Something like this is...

Hello, This issue is reporting what seems to me an inconsistency with TypeScript behaviour. Since [this pull request](https://github.com/microsoft/TypeScript/pull/47050), TypeScript allows a type to represent all the strings that are `Uppercase`,...

suggestion

Your readme says that this is built for draft 6. That is now six years old and three versions behind. Any plans on supporting later versions, especially draft 2020-12?

future
consideration

### Discussed in https://github.com/sinclairzx81/typebox/discussions/370 Originally posted by **m4rvr** April 5, 2023 Hey! I'm currenlty using Typebox to perform Json validation , and I m using Enums to define my Typebox...

Context: https://github.com/Gnuxie/matrix-protection-suite/pull/26 I hit the limit about [here](https://github.com/Gnuxie/matrix-protection-suite/blob/bfddf00c4adb3336a61ff52bd7bfb44d6698b5c8/src/MatrixTypes/Events.ts#L95) in this file where we make extensive use of composite types to try keep the schema modular. Granted, this could be a...

investigate
todo

Hello, first of all, thank you for creating this package with such an extensive API! However, I'm currently struggling with a specific case. I'd like to create a custom typebox...

future
consideration

You asked for feedback [here](https://github.com/sinclairzx81/typebox/issues/819), but this is too much, so staring a new issue. I definitely like the idea, but I'm not sure that it quite captures what such...

I've noticed that when using TypeScript in our project, the IDE doesn't suggest props when utilizing the Pick or Omit methods. I have a feeling that this functionality used to...

```typescript import { Value } from '@sinclair/typebox/value' import * as t from '@sinclair/typebox/type' export const TypeAsStr = (Schema: Schema) => t.Transform(Schema) .Decode(JSON.stringify) .Encode(JSON.parse) const T_ = t.Object({ a: t.Integer() })...