From b3e0cb17d0e095b5c883042b2306571be5ec86b7 Mon Sep 17 00:00:00 2001 From: Florian Schwalm <68847951+egfx-notifications@users.noreply.github.com> Date: Fri, 4 Feb 2022 18:52:45 +0100 Subject: [PATCH] docs: Fix typo (#1890) --- docs/guide/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/typescript.md b/docs/guide/typescript.md index 9a730a950..d7674f8f5 100644 --- a/docs/guide/typescript.md +++ b/docs/guide/typescript.md @@ -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.