Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 0779597

Browse files
Update Basic Types.md
1 parent dd7c6d9 commit 0779597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Basic Types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ That means you can assign `null` and `undefined` to something like `number`.
206206

207207
However, when using the `--strictNullChecks` flag, `null` and `undefined` are only assignable to `void` and their respective types.
208208
This helps avoid *many* common errors.
209-
In cases where you wanted to pass in either a `string` or `null` or `undefined`, you can use the union type `string | null | undefined`.
209+
In cases where you want to pass in either a `string` or `null` or `undefined`, you can use the union type `string | null | undefined`.
210210
Once again, more on union types later on.
211211

212212
> As a note: we encourage the use of `--strictNullChecks` when possible, but for the purposes of this handbook, we will assume it is turned off.

0 commit comments

Comments
 (0)