@microsoft/fast-element/di.js > all
all() function
A decorator and DI resolver that will resolve an array of all dependencies registered with the specified key.
Signature:
all: (key: any, searchAncestors?: boolean) => ReturnType<typeof DI.inject>
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
any |
The key to resolve all dependencies for. |
|
searchAncestors |
boolean |
(Optional) [optional] Indicates whether to search ancestor containers. |
Returns:
ReturnType<typeof DI.inject>