Closed nicojs closed 4 years ago
Allow to declare tokens as const.
This:
class Foo { static inject = tokens('bar'); }
Can now also be specified as:
class Foo { static inject = ['bar'] as const; }
Fixes #23
BREAKING CHANGE: The typed-inject is now expecting tokens to be provided in a readonly array. You can either use as const or the tokens helper function for it.
readonly
as const
tokens
Allow to declare tokens as const.
This:
Can now also be specified as:
Fixes #23
BREAKING CHANGE: The typed-inject is now expecting tokens to be provided in a
readonly
array. You can either useas const
or thetokens
helper function for it.