Closed justsml closed 1 year ago
Thanks, @justsml.
However tslint
seems to throw, either:
TS1336: An index signature parameter type cannot be a type alias.
or:
TS1337: An index signature parameter type cannot be a union type.
In the end you might be able to get it working, just note that I am trying to keep the type definitions as simple as possible.
number
to1 | 2