parent
d89f57f9d5
commit
0f1de35604
@ -60,10 +60,8 @@ export abstract class Injector {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves an instance from the injector based on the provided token.
|
* Retrieves an instance from the injector based on the provided token.
|
||||||
* If not found:
|
* @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
||||||
* - Throws an error if no `notFoundValue` that is not equal to
|
* @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
||||||
* Injector.THROW_IF_NOT_FOUND is given
|
|
||||||
* - Returns the `notFoundValue` otherwise
|
|
||||||
*/
|
*/
|
||||||
abstract get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
abstract get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user