@types/fast-html-parser
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -42,6 +42,6 @@ // Type definitions for fast-html-parser 1.0 | ||
export interface ParseOptions { | ||
lowerCaseTagName?: boolean; | ||
pre?: boolean; | ||
script?: boolean; | ||
style?: boolean; | ||
lowerCaseTagName?: boolean | undefined; | ||
pre?: boolean | undefined; | ||
script?: boolean | undefined; | ||
style?: boolean | undefined; | ||
} |
{ | ||
"name": "@types/fast-html-parser", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "TypeScript definitions for fast-html-parser", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fast-html-parser", | ||
"license": "MIT", | ||
@@ -22,4 +23,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "ce6d7a30d9b0a716f805895d8d14679f480f7a0f6a3fb7a63f73095d71db8a21", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "f1640924e18c03da9d36f3ec0d99e8562639036922bcbe1efa208f65a578b774", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,55 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fast-html-parser. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fast-html-parser/index.d.ts) | ||
````ts | ||
// Type definitions for fast-html-parser 1.0 | ||
// Project: https://github.com/ashi009/node-fast-html-parser | ||
// Definitions by: Ryan Howard <https://github.com/rollercodester> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.4 | ||
export function parse(data: string, options?: ParseOptions): HTMLElement; | ||
export enum NodeType { | ||
ELEMENT_NODE = 1, | ||
TEXT_NODE = 3, | ||
} | ||
export interface Attributes { | ||
[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 | null; | ||
querySelectorAll(selector: string): HTMLElement[]; | ||
removeWhitespace(): HTMLElement; | ||
trimRight(pattern?: RegExp): HTMLElement; | ||
} | ||
export interface ParseOptions { | ||
lowerCaseTagName?: boolean | undefined; | ||
pre?: boolean | undefined; | ||
script?: boolean | undefined; | ||
style?: boolean | undefined; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Fri, 16 Oct 2020 12:34:25 GMT | ||
* Last updated: Thu, 08 Jul 2021 12:01:29 GMT | ||
* Dependencies: none | ||
@@ -14,0 +64,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5504
0
67