mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
update (redux-saga-tester): minor change (#45325)
Add return type for "sagaTester.waitFor" method
13c0f04401 (diff-04c6e90faac2675aa89e2176d2eec7d8R163)
This commit is contained in:
parent
d3ce8bd4d0
commit
a292e6b844
3
types/redux-saga-tester/index.d.ts
vendored
3
types/redux-saga-tester/index.d.ts
vendored
@ -43,9 +43,10 @@ export default class SagaTester<StateType extends object> {
|
||||
|
||||
/**
|
||||
* Returns a promise that will resolve if the specified action is dispatched to the store.
|
||||
* @param actionType Action name.
|
||||
* @param futureOnly Causes waitFor to only resolve if the action is called in the future.
|
||||
*/
|
||||
waitFor(actionType: string, futureOnly?: boolean): PromiseLike<void>;
|
||||
waitFor(actionType: string, futureOnly?: boolean): PromiseLike<AnyAction>;
|
||||
|
||||
/**
|
||||
* Returns whether the specified was dispatched in the past.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user