mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Add all keyword to chai-as-promised (#9041)
* Add all to promised assertions. * Changed the definitions to match chai.d.ts.
This commit is contained in:
committed by
Masahiro Wakame
parent
44d3872606
commit
2a83c342f7
+6
@@ -36,6 +36,7 @@ declare namespace Chai {
|
||||
// From chai
|
||||
not: PromisedAssertion;
|
||||
deep: PromisedDeep;
|
||||
all: PromisedKeyFilter;
|
||||
a: PromisedTypeComparison;
|
||||
an: PromisedTypeComparison;
|
||||
include: PromisedInclude;
|
||||
@@ -129,6 +130,10 @@ declare namespace Chai {
|
||||
property: PromisedProperty;
|
||||
}
|
||||
|
||||
interface PromisedKeyFilter {
|
||||
keys: PromisedKeys;
|
||||
}
|
||||
|
||||
interface PromisedEqual {
|
||||
(value: any, message?: string): PromisedAssertion;
|
||||
}
|
||||
@@ -151,6 +156,7 @@ declare namespace Chai {
|
||||
(value: number, message?: string): PromisedAssertion;
|
||||
keys: PromisedKeys;
|
||||
members: PromisedMembers;
|
||||
all: PromisedKeyFilter;
|
||||
}
|
||||
|
||||
interface PromisedKeys {
|
||||
|
||||
Reference in New Issue
Block a user