Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/chai-dom

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/chai-dom - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

chai-dom/index.d.ts

@@ -42,2 +42,4 @@ // Type definitions for chai-dom

tagName(name: string): Assertion;
focus: Assertion;
}

@@ -44,0 +46,0 @@

7

chai-dom/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc