Closed Zajozor closed 1 year ago
Oh the moment I hit Submit I realized what's the issue 🙈
I've been using @fastify/type-provider-typebox
and it resolved @sinclair/typebox
to an older version than 0.27.8
.
So for example doing
"resolutions": {
"@sinclair/typebox": "0.27.8"
}
in package.json
"removes" the issue. (keep in mind to check that the library you're forcing the resolution for is compatible with the force-resolved version)
Hi, thanks for the amazing library!
I'm trying to do what is here in documentation: https://github.com/sinclairzx81/typebox#types-1
But on line
type T = Static<typeof T> // type T = { x: number, y: number }
I'm getting
Can you please help? Is the example incorrect? It really feels like if I understood the feature correctly, it should work like this.. Is there perhaps an error in the docs?
Using
"@sinclair/typebox": "0.27.8",
(latest at the time of writing)Appreciate your time 🙏🏻