Function waitForPrototype
waitForPrototype<T, P extends PropertyKey = keyof T>( props: P[], options: WaitForOptions & { raw?: false },): Promise<T> Type Parameters
- T
- P extends PropertyKey = keyof T
Returns Promise<T>
Type Parameters
- T
- P extends PropertyKey = keyof T
Type Parameters
- T
- P extends PropertyKey = keyof T
waitForPrototype<T, P extends PropertyKey = keyof T>(...props: P[]): Promise<T> Type Parameters
- T
- P extends PropertyKey = keyof T
Returns Promise<T>
Waits for a module that contains the specified prototype properties and returns it.
Like getByPrototype but waits for the module to be loaded.
Template: T
The type of the module to be returned.
Template: P
The type of the property keys to look for in the prototype.
Param: args
Either an array of property keys to look for in the prototype, or an array containing the property keys and an optional configuration object.
Returns
A promise that resolves to the module containing the specified prototype properties.
See