Revert "Upgrade to TypeScript 2.1, and latest grunt-ts. (#3609)"

This reverts commit 79e6881ca6.
This commit is contained in:
Hristo Deshev
2017-02-09 11:41:27 +02:00
parent 489be1e460
commit 13dc8cecae
23 changed files with 4475 additions and 85 deletions

View File

@@ -82,14 +82,16 @@
y: number;
}
export interface Cancelable {
cancel(): void;
}
/**
* A Promise that can cancel the animation.
* Create Promise that can cancel the animation, we have to pretend our returns itself along with the cancel
*/
export type AnimationPromise = Promise<void> & Cancelable;
export class AnimationPromise extends Promise<void> {
cancel(): void;
then(onFulfilled?: (value?: any) => PromiseLike<void>, onRejected?: (error?: any) => PromiseLike<void>): AnimationPromise;
then(onFulfilled?: (value?: any) => void, onRejected?: (error?: any) => void): AnimationPromise;
catch(onRejected?: (error?: any) => PromiseLike<void>): AnimationPromise;
catch(onRejected?: (error?: any) => void): AnimationPromise;
}
/**
* Defines a animation set.