mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Revert "Upgrade to TypeScript 2.1, and latest grunt-ts. (#3609)"
This reverts commit 79e6881ca6.
This commit is contained in:
14
tns-core-modules/ui/animation/animation.d.ts
vendored
14
tns-core-modules/ui/animation/animation.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user