Skip to content

DI Bag API / index / SelectionKey

Type Alias: SelectionKey<T> ​

ts
type SelectionKey<T> = T extends string ? T : TokenKey<T>;

Defined in: token-types.ts:73

Convert a string selection to itself or a typed token to its symbol key.

Type Parameters ​

Type ParameterDescription
T-

See ​

https://dany-fedorov.github.io/di-bag/guides/tutorial.html#use-typed-tokens-for-explicit-positional-injection

Ordinary services. Checked composition. Explicit ownership.