Update readme.md

This commit is contained in:
sinclairzx81
2018-10-29 19:27:01 +13:00
committed by GitHub
parent 7f0b3261bb
commit 61c440c55c
+5 -4
View File
@@ -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: