Skip to content

Commit 982c531

Browse files
fix(types): add support for exactOptionalPropertyTypes (#6061)
When enabling the TypeScript option `exactOptionalPropertyTypes`, there’s `undefined` is no longer assignable to optional property types. In most cases however, this is what you want. In order to support this, this change adds `| undefined` to all optional property types. Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
1 parent a44003e commit 982c531

2 files changed

Lines changed: 189 additions & 175 deletions

File tree

0 commit comments

Comments
 (0)