mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-04 20:54:36 +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:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user