mirror of
https://github.com/zoriya/typebox.git
synced 2026-05-28 17:06:41 +00:00
Update readme.md
This commit is contained in:
@@ -13,12 +13,13 @@ const Foo = Type.Object({
|
||||
|
||||
// statically resolve type Foo.
|
||||
function createFoo(foo: Static<typeof Foo>) {
|
||||
// foo.a - string
|
||||
// foo.b - number
|
||||
// foo.c - boolean
|
||||
// foo is {
|
||||
// a: string
|
||||
// b: number
|
||||
// c: string
|
||||
// }
|
||||
}
|
||||
|
||||
// Foo itself is just JSON schema.
|
||||
console.log(Foo)
|
||||
// -> { type: 'object',
|
||||
// properties:
|
||||
|
||||
Reference in New Issue
Block a user