You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/guide/typescript.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
Ajv takes advantage of TypeScript type system to provide additional functionality that is not possible in JavaScript:
8
8
9
9
- 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).
10
-
- utility type `JTDDataType` to covert JSON Type Definition schema into the type of data that it defines.
10
+
- utility type `JTDDataType` to convert JSON Type Definition schema into the type of data that it defines.
11
11
- compiled validation functions are type guards that narrow the type after successful validation.
12
12
- validation errors for JSON Schema are defined as tagged unions, for type-safe error handling.
13
13
- 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.
0 commit comments