A valid InjectableFunction is one that can be successfully called, given some Services, to return a new Service.
That is, it must satisfy two conditions:
All the Tokens it specifies as dependencies are valid given the Services (i.e. they are either the Container
Token or keys of the Services type).
The function argument types correspond to the Services specified by the dependency Tokens.
A InjectableFunction also includes its own key Token and dependency Tokens as metadata, so it may be resolved by
Container later.
A valid
InjectableFunction
is one that can be successfully called, given some Services, to return a new Service. That is, it must satisfy two conditions:A later.
InjectableFunction
also includes its own key Token and dependency Tokens as metadata, so it may be resolved by Container