@types/fast-html-parser
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -10,38 +10,38 @@ // Type definitions for fast-html-parser 1.0 | ||
export enum NodeType { | ||
ELEMENT_NODE = 1, | ||
TEXT_NODE = 3, | ||
ELEMENT_NODE = 1, | ||
TEXT_NODE = 3, | ||
} | ||
export interface Attributes { | ||
[key: string]: string; | ||
[key: string]: string; | ||
} | ||
export interface HTMLElement { | ||
readonly attributes: Attributes; | ||
readonly childNodes: HTMLElement[]; | ||
readonly classNames: string[]; | ||
readonly firstChild: HTMLElement; | ||
readonly id: string; | ||
readonly isWhitespace: boolean; | ||
readonly lastChild: HTMLElement; | ||
readonly nodeType: NodeType; | ||
readonly rawAttrs: string; | ||
readonly rawAttributes: Attributes; | ||
readonly rawText: string; | ||
readonly structure: string; | ||
readonly structuredText: string; | ||
readonly text: string; | ||
readonly tagName: string; | ||
appendChild(node: HTMLElement): HTMLElement; | ||
querySelector(selector: string): HTMLElement; | ||
querySelectorAll(selector: string): HTMLElement[]; | ||
removeWhitespace(): HTMLElement; | ||
trimRight(pattern?: RegExp): HTMLElement; | ||
readonly attributes: Attributes; | ||
readonly childNodes: HTMLElement[]; | ||
readonly classNames: string[]; | ||
readonly firstChild: HTMLElement; | ||
readonly id: string; | ||
readonly isWhitespace: boolean; | ||
readonly lastChild: HTMLElement; | ||
readonly nodeType: NodeType; | ||
readonly rawAttrs: string; | ||
readonly rawAttributes: Attributes; | ||
readonly rawText: string; | ||
readonly structure: string; | ||
readonly structuredText: string; | ||
readonly text: string; | ||
readonly tagName: string; | ||
appendChild(node: HTMLElement): HTMLElement; | ||
querySelector(selector: string): HTMLElement | null; | ||
querySelectorAll(selector: string): HTMLElement[]; | ||
removeWhitespace(): HTMLElement; | ||
trimRight(pattern?: RegExp): HTMLElement; | ||
} | ||
export interface ParseOptions { | ||
lowerCaseTagName?: boolean; | ||
pre?: boolean; | ||
script?: boolean; | ||
style?: boolean; | ||
lowerCaseTagName?: boolean; | ||
pre?: boolean; | ||
script?: boolean; | ||
style?: boolean; | ||
} |
{ | ||
"name": "@types/fast-html-parser", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "TypeScript definitions for fast-html-parser", | ||
@@ -14,3 +14,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -23,4 +23,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "22665caa56222682bb38c53311669e4ac3c54ead789af1f2c3c4918906c40334", | ||
"typeScriptVersion": "2.4" | ||
"typesPublisherContentHash": "ce6d7a30d9b0a716f805895d8d14679f480f7a0f6a3fb7a63f73095d71db8a21", | ||
"typeScriptVersion": "3.2" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fast-html-parser | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fast-html-parser. | ||
Additional Details | ||
* Last updated: Sat, 07 Sep 2019 00:26:22 GMT | ||
### Additional Details | ||
* Last updated: Fri, 16 Oct 2020 12:34:25 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Ryan Howard <https://github.com/rollercodester>. | ||
These definitions were written by [Ryan Howard](https://github.com/rollercodester). |
Sorry, the diff of this file is not supported yet
3788