@types/chai-dom
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -42,2 +42,4 @@ // Type definitions for chai-dom | ||
tagName(name: string): Assertion; | ||
focus: Assertion; | ||
} | ||
@@ -44,0 +46,0 @@ |
{ | ||
"name": "@types/chai-dom", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "TypeScript definitions for chai-dom", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-dom", | ||
"license": "MIT", | ||
@@ -24,4 +25,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "febbb3e25a26ca701532584ada8d07348302ff9e376d10da187d038013124079", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "708a24bb219a2c91abbc1e29838018b3e411ba3ce460c4a01ce5bfa3776a3b5a", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -9,5 +9,69 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-dom. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-dom/index.d.ts) | ||
````ts | ||
// Type definitions for chai-dom | ||
// Project: https://github.com/nathanboktae/chai-dom | ||
// Definitions by: Matt Lewis <https://github.com/mattlewis92> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 3.0 | ||
/// <reference types="chai" /> | ||
declare namespace Chai { | ||
interface Assertion { | ||
attr(name: string, value?: string): Assertion; | ||
attribute(name: string, value?: string): Assertion; | ||
class(className: string): Assertion; | ||
id(id: string): Assertion; | ||
html(html: string): Assertion; | ||
text(text: string | string[]): Assertion; | ||
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; | ||
trimmed: Assertion; | ||
visible: Assertion; | ||
tagName(name: string): Assertion; | ||
focus: Assertion; | ||
} | ||
interface Include { | ||
text(text: string | string[]): Assertion; | ||
html(text: string | string[]): Assertion; | ||
} | ||
interface Match { | ||
(selector: string): Assertion; | ||
} | ||
} | ||
declare module 'chai-dom' { | ||
const chaiDom: Chai.ChaiPlugin; | ||
export = chaiDom; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 08 Jun 2020 13:04:12 GMT | ||
* Last updated: Thu, 16 Sep 2021 09:01:29 GMT | ||
* Dependencies: [@types/chai](https://npmjs.com/package/@types/chai) | ||
@@ -14,0 +78,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5584
39
1
81