Skip to content

Commit a845c31

Browse files
committed
add return annotation to promiseTimeout
1 parent ae5fa2e commit a845c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/lib/promise-timeout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22

3-
export function promiseTimeout(ms: number, promise: Promise<any>) {
3+
export function promiseTimeout(ms: number, promise: Promise<any>): Promise<any> {
44
return new Promise(function(resolve, reject) {
55
// create a timeout to reject promise if not resolved
66
let timer = setTimeout(function() {

0 commit comments

Comments
 (0)