mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
jasminewd2: Use global Promise type (#19206)
This commit is contained in:
5
types/jasminewd2/index.d.ts
vendored
5
types/jasminewd2/index.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user