mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Keep should and should-promised compatible
This commit is contained in:
6
types/should-promised/index.d.ts
vendored
6
types/should-promised/index.d.ts
vendored
@@ -5,10 +5,8 @@
|
||||
|
||||
interface ShouldAssertion {
|
||||
Promise: ShouldAssertion;
|
||||
fulfilled(): ShouldAssertion;
|
||||
rejected(): ShouldAssertion;
|
||||
rejectedWith(message: (string | Function | RegExp), properties?: Object): ShouldAssertion;
|
||||
rejectedWith(message: Object): ShouldAssertion;
|
||||
fulfilled: Promise<any>;
|
||||
rejected: Promise<any>;
|
||||
finally: ShouldAssertion;
|
||||
eventually: ShouldAssertion;
|
||||
}
|
||||
|
||||
3
types/should/index.d.ts
vendored
3
types/should/index.d.ts
vendored
@@ -99,7 +99,8 @@ interface ShouldAssertion {
|
||||
fulfilled(): Promise<any>;
|
||||
fulfilledWith(value: any): Promise<any>
|
||||
rejected(): Promise<any>;
|
||||
rejectedWith(err: Error | string | RegExp): Promise<any>;
|
||||
rejectedWith(message: (string | Function | RegExp), properties?: Object): Promise<any>;
|
||||
rejectedWith(errType: Object): Promise<any>;
|
||||
|
||||
//http
|
||||
header(field: string, val?: string): ShouldAssertion;
|
||||
|
||||
Reference in New Issue
Block a user