steida / actualtasks

Local, minimal, key navigable tasks.
https://actualtasks.com
MIT License
11 stars 0 forks source link

Object instead of array for collection #19

Closed steida closed 5 years ago

steida commented 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.

steida commented 5 years ago

Impossible imho.