- Preparing search index...
- The search index is not available
checked-inject
- AsyncFactoryKey<T, Args>(): TypeKeyClass<((...args) => Promise<T>), never>
-
Type Parameters
-
T
-
Args extends any[] = []
Returns TypeKeyClass<((...args) => Promise<T>), never>
- AsyncFactoryKey<T, Args>(fac): TypeKeyClass<((...args) => Promise<T>), ComputedKey.WithDepsOf<((...args) => Promise<T>), void>>
-
Parameters
-
fac: ((...args) => T | Promise<T>)
-
- (...args): T | Promise<T>
-
Returns T | Promise<T>
Returns TypeKeyClass<((...args) => Promise<T>), ComputedKey.WithDepsOf<((...args) => Promise<T>), void>>
- AsyncFactoryKey<T, Args, K>(deps, fac): TypeKeyClass<((...args) => Promise<T>), ComputedKey.WithDepsOf<((...args) => Promise<T>), Async<K>>>
-
Parameters
-
deps: K
-
fac: ((deps, ...args) => T | Promise<T>)
-
- (deps, ...args): T | Promise<T>
-
Returns T | Promise<T>
Returns TypeKeyClass<((...args) => Promise<T>), ComputedKey.WithDepsOf<((...args) => Promise<T>), Async<K>>>
A specialized form of TypeKey that resolves an async function of the form
(...args: Args) => Promise<T>
.