diff --git a/types/should/index.d.ts b/types/should/index.d.ts index 6060fa68cc..918e82a6ba 100644 --- a/types/should/index.d.ts +++ b/types/should/index.d.ts @@ -42,6 +42,7 @@ interface ShouldAssertion { Class(): ShouldAssertion; Undefined(): ShouldAssertion; Null(): ShouldAssertion; + Promise(): ShouldAssertion; generator(): ShouldAssertion; iterable(): ShouldAssertion; iterator(): ShouldAssertion; @@ -92,6 +93,14 @@ 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(err: Error | string | RegExp): Promise; + //http header(field: string, val?: string): ShouldAssertion; status(code: number): ShouldAssertion;