jasminewd2: Use global Promise type (#19206)

This commit is contained in:
Andy
2017-08-29 11:54:03 -07:00
committed by GitHub
parent 9ab3cd2b02
commit d131a79ae8

View File

@@ -15,11 +15,6 @@ declare function beforeAll(action: () => Promise<void>, timeout?: number): void;
declare function afterAll(action: () => Promise<void>, timeout?: number): void;
declare namespace jasmine {
// The global `Promise` type is too strict and kinda wrong
interface Promise<T> {
then<U>(onFulfill?: (value: T) => U | Promise<U>, onReject?: (error: any) => U | Promise<U>): Promise<U>;
}
interface Matchers<T> {
toBe(expected: any, expectationFailOutput?: any): Promise<void>;
toEqual(expected: any, expectationFailOutput?: any): Promise<void>;