Skip to content

Commit

Permalink
docs: Fix typo (#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
egfx-notifications authored Feb 4, 2022
1 parent 0e47ab4 commit b3e0cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Ajv takes advantage of TypeScript type system to provide additional functionality that is not possible in JavaScript:

- utility types `JSONSchemaType` and `JTDSchemaType` to convert data type into the schema type to simplify writing schemas, both for [JSON Schema](../json-schema.md) (but without union support) and for [JSON Type Definition](../json-type-definition) (with tagged unions support).
- utility type `JTDDataType` to covert JSON Type Definition schema into the type of data that it defines.
- utility type `JTDDataType` to convert JSON Type Definition schema into the type of data that it defines.
- compiled validation functions are type guards that narrow the type after successful validation.
- validation errors for JSON Schema are defined as tagged unions, for type-safe error handling.
- when utility type is used, compiled JTD serializers only accept data of correct type (as they do not validate that the data is valid) and compiled parsers return correct data type.
Expand Down

0 comments on commit b3e0cb1

Please sign in to comment.