@types/cheerio
Advanced tools
Comparing version 0.22.13 to 0.22.14
@@ -24,2 +24,3 @@ // Type definitions for Cheerio v0.22.0 | ||
[index: number]: CheerioElement; | ||
cheerio: string; | ||
length: number; | ||
@@ -29,3 +30,3 @@ | ||
attr(): {[attr: string]: string}; | ||
attr(): { [attr: string]: string }; | ||
attr(name: string): string; | ||
@@ -39,3 +40,3 @@ attr(name: string, value: AttrFunction): Cheerio; | ||
// regardless. | ||
attr(map: {[key: string]: any}): Cheerio; | ||
attr(map: { [key: string]: any }): Cheerio; | ||
@@ -64,3 +65,6 @@ data(): any; | ||
toggleClass(toggleSwitch?: boolean): Cheerio; | ||
toggleClass(func: (index: number, className: string, toggleSwitch: boolean) => string, toggleSwitch?: boolean): Cheerio; | ||
toggleClass( | ||
func: (index: number, className: string, toggleSwitch: boolean) => string, | ||
toggleSwitch?: boolean, | ||
): Cheerio; | ||
@@ -75,6 +79,6 @@ is(selector: string): boolean; | ||
serialize(): string; | ||
serializeArray(): {name: string, value: string}[]; | ||
serializeArray(): { name: string; value: string }[]; | ||
// Traversing | ||
find(selector: string): Cheerio; | ||
@@ -153,8 +157,8 @@ find(element: Cheerio): Cheerio; | ||
addBack():Cheerio; | ||
addBack(filter: string):Cheerio; | ||
addBack(): Cheerio; | ||
addBack(filter: string): Cheerio; | ||
// Manipulation | ||
appendTo(target: Cheerio) : Cheerio | ||
prependTo(target: Cheerio) : Cheerio | ||
appendTo(target: Cheerio): Cheerio; | ||
prependTo(target: Cheerio): Cheerio; | ||
@@ -278,3 +282,3 @@ append(content: string, ...contents: any[]): Cheerio; | ||
name: string; | ||
attribs: {[attr: string]: string}; | ||
attribs: { [attr: string]: string }; | ||
children: CheerioElement[]; | ||
@@ -296,12 +300,12 @@ childNodes: CheerioElement[]; | ||
interface CheerioAPI extends CheerioSelector, CheerioStatic { | ||
load(html: string | Buffer, options?: CheerioOptionsInterface): CheerioStatic; | ||
load(element: CheerioElement, options?: CheerioOptionsInterface): CheerioStatic; | ||
load(html: string | Buffer, options?: CheerioOptionsInterface): CheerioStatic; | ||
load(element: CheerioElement, options?: CheerioOptionsInterface): CheerioStatic; | ||
} | ||
interface Document { } | ||
interface Document {} | ||
declare var cheerio:CheerioAPI; | ||
declare const cheerio: CheerioAPI; | ||
declare module "cheerio" { | ||
declare module 'cheerio' { | ||
export = cheerio; | ||
} |
{ | ||
"name": "@types/cheerio", | ||
"version": "0.22.13", | ||
"version": "0.22.14", | ||
"description": "TypeScript definitions for Cheerio", | ||
@@ -53,3 +53,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -64,4 +64,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "dae1ec3a86451ce13a090d94367e56f11f04da5356a117852ef3b2e4973b495e", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "5ca5b9557b65893c3b8cf24e645cedb0d0fd76bc44bde90977a8ba1996593d62", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cheerio | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cheerio. | ||
Additional Details | ||
* Last updated: Fri, 09 Aug 2019 14:40:30 GMT | ||
* Dependencies: @types/node | ||
* Global values: cheerio | ||
### Additional Details | ||
* Last updated: Tue, 12 Nov 2019 00:57:05 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: `cheerio` | ||
# Credits | ||
These definitions were written by Bret Little <https://github.com/blittle>, VILIC VANE <http://vilic.info>, Wayne Maurer <https://github.com/wmaurer>, Umar Nizamani <https://github.com/umarniz>, LiJinyao <https://github.com/LiJinyao>, Chennakrishna <https://github.com/chennakrishna8>, AzSiAz <https://github.com/AzSiAz>, Ryo Ota <https://github.com/nwtgck>, and Rebecca Turner <https://github.com/9999years>. | ||
These definitions were written by Bret Little (https://github.com/blittle), VILIC VANE (http://vilic.info), Wayne Maurer (https://github.com/wmaurer), Umar Nizamani (https://github.com/umarniz), LiJinyao (https://github.com/LiJinyao), Chennakrishna (https://github.com/chennakrishna8), AzSiAz (https://github.com/AzSiAz), Ryo Ota (https://github.com/nwtgck), and Rebecca Turner (https://github.com/9999years). |
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
13954
236