Skip to content
Medium
tsconfig strict

Exact optionals

Show how exactOptionalPropertyTypes affects assignment; create a type that forbids setting optional props to undefined unless explicitly allowed.

Solution

Loading...
Run your code to see output and diagnostics.

Built by Antigravity. The source code is available on GitHub.