waitForProps<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
waitForProps<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 properties and returns it.
Like getByProps 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 module's exports.
Param: args
Either an array of property keys to look for in the module's exports, or an array containing the property keys and an optional configuration object.
Returns
A promise that resolves to the module containing the specified properties.
See