fix compilation error

pull/15894/head
Joao Moreno 2017-01-09 09:58:57 +01:00
parent 63a755e411
commit 1d2bf7f43f
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export function anyEvent<T>(...events: Event<T>[]): Event<T> {
}
export function done<T>(promise: Promise<T>): Promise<void> {
return promise.then(() => null, () => null);
return promise.then<void>(() => void 0, () => void 0);
}
export function throttle<T>(fn: () => Promise<T>): () => Promise<T> {