Skip to content

Commit

Permalink
Update Type Compatibility.md (#3157)
Browse files Browse the repository at this point in the history
  • Loading branch information
ComplexPlane authored Jun 14, 2024
1 parent 7cf9aa0 commit 1eb0175
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -409,4 +409,4 @@ Reiterating [The Basics](/docs/handbook/2/basic-types.html):
- `void` is not assignable to or from anything, with the following exceptions: `any`, `unknown`, `never`, `undefined`, and `null` (if [`strictNullChecks`](/tsconfig#strictNullChecks) is off, see table for details).
- When [`strictNullChecks`](/tsconfig#strictNullChecks) is off, `null` and `undefined` are similar to `never`: assignable to most types, most types are not assignable to them.
They are assignable to each other.
- When [`strictNullChecks`](/tsconfig#strictNullChecks) is on, `null` and `undefined` behave more like `void`: not assignable to or from anything, except for `any`, `unknown`, `never`, and `void` (`undefined` is always assignable to `void`).
- When [`strictNullChecks`](/tsconfig#strictNullChecks) is on, `null` and `undefined` behave more like `void`: not assignable to or from anything, except for `any`, `unknown`, and `void` (`undefined` is always assignable to `void`).

0 comments on commit 1eb0175

Please sign in to comment.