Skip to content

Commit e9df4c1

Browse files
eventualbuddhaepoberezkin
andauthoredDec 15, 2021
doc: fix typo (#1847)
"Additionaly" should be "Additionally". Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
1 parent c7bf889 commit e9df4c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/guide/typescript.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ JSON Type Definition only supports tagged unions, so unions in JTD are fully sup
279279
JSON Schema is more complex and so `JSONSchemaType` has limited support for type safe unions.
280280

281281
`JSONSchemaType` will type check unions where each union element is fully specified as an element of an `anyOf` array or `oneOf` array.
282-
Additionaly, unions of primitives will type check appropriately if they're combined into an array `type`, e.g. `{type: ["string", "number"]}`.
282+
Additionally, unions of primitives will type check appropriately if they're combined into an array `type`, e.g. `{type: ["string", "number"]}`.
283283

284284
::: warning TypeScript limitation
285285
Note that due to current limitation of TypeScript, JSONSchemaType cannot verify that every element of the union is present, and the following example is still valid `const schema: JSONSchemaType<number | string> = {type: "string"}`.

0 commit comments

Comments
 (0)
Please sign in to comment.