mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 21:47:35 +00:00
Fixed dirty-chai typing (#37658)
To handle Promise type correctly, the result must be a PromisedAssertion like as chai-as-promised
This commit is contained in:
parent
0a3b8c0096
commit
dc4b0cbfa4
4
types/dirty-chai/index.d.ts
vendored
4
types/dirty-chai/index.d.ts
vendored
@ -19,8 +19,8 @@ declare global {
|
||||
}
|
||||
|
||||
interface PromisedAssertion extends Eventually, PromiseLike<any> {
|
||||
(message?: string): Assertion;
|
||||
ensure: Assertion;
|
||||
(message?: string): PromisedAssertion;
|
||||
ensure: PromisedAssertion;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user