Closed steida closed 5 years ago
I would like to use objects because of fast tasks[id] access, but I don't know how to type it so Object.keys(tasks) returns non-nullables while tasks[anyId] would require a type check.
Impossible imho.
I would like to use objects because of fast tasks[id] access, but I don't know how to type it so Object.keys(tasks) returns non-nullables while tasks[anyId] would require a type check.