diff --git a/types/should-promised/index.d.ts b/types/should-promised/index.d.ts
index 75432273bf..0c17b970f7 100644
--- a/types/should-promised/index.d.ts
+++ b/types/should-promised/index.d.ts
@@ -4,11 +4,5 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface ShouldAssertion {
- Promise: ShouldAssertion;
- fulfilled(): ShouldAssertion;
- rejected(): ShouldAssertion;
- rejectedWith(message: (string | Function | RegExp), properties?: Object): ShouldAssertion;
- rejectedWith(message: Object): ShouldAssertion;
- finally: ShouldAssertion;
- eventually: ShouldAssertion;
+ // all of the extensions are now part of should itself
}
diff --git a/types/should/index.d.ts b/types/should/index.d.ts
index 6060fa68cc..0a5038d027 100644
--- a/types/should/index.d.ts
+++ b/types/should/index.d.ts
@@ -1,4 +1,4 @@
-// Type definitions for should.js v8.1.1
+// Type definitions for should.js v8.3.0
// Project: https://github.com/shouldjs/should.js
// Definitions by: Alex Varju , Maxime LUCE
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -42,6 +42,7 @@ interface ShouldAssertion {
Class(): ShouldAssertion;
Undefined(): ShouldAssertion;
Null(): ShouldAssertion;
+ Promise(): ShouldAssertion;
generator(): ShouldAssertion;
iterable(): ShouldAssertion;
iterator(): ShouldAssertion;
@@ -92,6 +93,15 @@ interface ShouldAssertion {
endWith(expected: string, message?: any): ShouldAssertion;
throw(message?: any): ShouldAssertion;
+ //promises
+ eventually: ShouldAssertion;
+ finally: ShouldAssertion;
+ fulfilled(): Promise;
+ fulfilledWith(value: any): Promise
+ rejected(): Promise;
+ rejectedWith(message: (string | Function | RegExp), properties?: Object): Promise;
+ rejectedWith(errType: Object): Promise;
+
//http
header(field: string, val?: string): ShouldAssertion;
status(code: number): ShouldAssertion;