Create a one-off type token from a value.
Used for providing default values.
class Wizard { name = inject(Name, Value("Harry"));}const wizard = container.resolve(Wizard);wizard.name; // => "Harry" Copy
class Wizard { name = inject(Name, Value("Harry"));}const wizard = container.resolve(Wizard);wizard.name; // => "Harry"
@NO_SIDE_EFFECTS
Create a one-off type token from a value.
Used for providing default values.