File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import { printDeprecationWarning } from './helpers/errors' ;
4
4
5
- type SimpleThenable = { then : ( ( ) => mixed ) => mixed } ;
5
+ type Thenable = { then : ( ( ) => mixed ) => mixed } ;
6
6
7
7
/**
8
8
* Wait for microtasks queue to flush
9
9
*/
10
- export default function flushMicrotasksQueue ( ) : SimpleThenable {
10
+ export default function flushMicrotasksQueue ( ) : Thenable {
11
11
printDeprecationWarning ( 'flushMicrotasksQueue' ) ;
12
12
return flushMicroTasks ( ) ;
13
13
}
@@ -16,7 +16,7 @@ export default function flushMicrotasksQueue(): SimpleThenable {
16
16
// any. $FlowFixMe - timers is internal Node module
17
17
const enqueueTask = require ( 'timers' ) . setImmediate ;
18
18
19
- export function flushMicroTasks ( ) : SimpleThenable {
19
+ export function flushMicroTasks ( ) : Thenable {
20
20
return {
21
21
then ( resolve ) {
22
22
enqueueTask ( resolve ) ;
You can’t perform that action at this time.
0 commit comments