update (redux-saga-tester): minor change (#45325)

Add return type for "sagaTester.waitFor" method
13c0f04401 (diff-04c6e90faac2675aa89e2176d2eec7d8R163)
This commit is contained in:
Siarhei Pakhuta 2020-06-12 21:25:38 +03:00 committed by GitHub
parent d3ce8bd4d0
commit a292e6b844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.