-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Description
Hello! Long time no see.
I've just upgraded past 10.0.0 with this breaking change:
Change how HashMap<K, V> is represented in TypeScript. The resulting bindings ({ [key in K]?: V } instead of { [key: K]: V }) are more accurate and flexible.
This does create problems, because now inside a Object.values(...)/Object.entries(...) the value can be undefined. Which it is definitely not.
Either using HashMap<K, V> or { [key: K]: V }) would prevent this problem.
I cannot quite understand why that decision was made.
But all I ask for is a feature flag to change this please. 🙏🏽
(for me this has created >25 errors in my repo - all wrongfully, because undefined is never the case)
Metadata
Metadata
Assignees
Labels
No labels