Skip to content

Commit

Permalink
Merge pull request ajv-validator#1548 from alazyzombie/patch-1
Browse files Browse the repository at this point in the history
docs: Update typescript getting started documentation
  • Loading branch information
epoberezkin committed Apr 12, 2021
2 parents df07f66 + 599fa28 commit 8762e6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/guide/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Ajv takes advantage of TypeScript type system to provide additional functionalit
## Utility types for schemas

For the same example as in [Getting started](./getting-started):
- ensure strictNullChecks is true

<code-group>
<code-block title="JSON Schema">
Expand All @@ -31,7 +32,7 @@ const schema: JSONSchemaType<MyData> = {
type: "object",
properties: {
foo: {type: "integer"},
bar: {type: "string"}
bar: {type: "string", nullable: "true"}
},
required: ["foo"],
additionalProperties: false
Expand Down

0 comments on commit 8762e6f

Please sign in to comment.