mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
chai, chai-dom, chai-jquery: fix signature of match()/matches() methods (#23077)
* chai: fix signature of match()/matches() methods * chai-dom: add missing assertions from recent minor versions * chai-jquery: add missing declaration caused by changes to @types/chai
This commit is contained in:
parent
29a649e6ab
commit
ec91c51a72
18
types/chai-dom/index.d.ts
vendored
18
types/chai-dom/index.d.ts
vendored
@ -23,6 +23,18 @@ declare namespace Chai {
|
||||
|
||||
value(text: string): Assertion;
|
||||
|
||||
empty: Assertion;
|
||||
|
||||
// exist, length, and contain are already defined in @types/chai and have the
|
||||
// same type or a more general type, so don't need to be re-declared even though
|
||||
// the implementation is different
|
||||
|
||||
descendant(element: string|HTMLElement): Assertion;
|
||||
|
||||
descendants(selector: string): Assertion;
|
||||
|
||||
displayed: Assertion;
|
||||
|
||||
}
|
||||
|
||||
interface Include {
|
||||
@ -33,6 +45,12 @@ declare namespace Chai {
|
||||
|
||||
}
|
||||
|
||||
interface Match {
|
||||
|
||||
(selector: string): Assertion;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
declare module "chai-dom" {
|
||||
|
||||
4
types/chai-jquery/index.d.ts
vendored
4
types/chai-jquery/index.d.ts
vendored
@ -27,6 +27,10 @@ declare namespace Chai {
|
||||
disabled(): Assertion;
|
||||
(selector: string): Assertion;
|
||||
}
|
||||
|
||||
interface Match {
|
||||
(selector: string): Assertion;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
2
types/chai/index.d.ts
vendored
2
types/chai/index.d.ts
vendored
@ -226,7 +226,7 @@ declare namespace Chai {
|
||||
}
|
||||
|
||||
interface Match {
|
||||
(regexp: RegExp|string, message?: string): Assertion;
|
||||
(regexp: RegExp, message?: string): Assertion;
|
||||
}
|
||||
|
||||
interface Keys {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user