-
-
Notifications
You must be signed in to change notification settings - Fork 11
Enable "exactOptionalPropertyTypes" flag #21
Copy link
Copy link
Open
Description
The TypeScript flag exactOptionalPropertyTypes causes TypeScript to distinguish between object properties that don't exist and properties that are set to undefined. This improves type safety for operations that iterate over keys.
Currently the types in this package result in a compiler error when this flag is enabled. This prevents the use of this flag in projects using this package (e.g. @metamask/controllers).
This flag was added in TypeScript v4.4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels