mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
cheerio: adding additional DomHandler configuration options (#43863)
* adding DomHandler options & test * adding trevorhreed as author
This commit is contained in:
parent
e071668c91
commit
4e2fa67b2f
@ -33,6 +33,8 @@ $ = cheerio.load(html, {
|
||||
|
||||
$ = cheerio.load(html, {
|
||||
normalizeWhitespace: true,
|
||||
withStartIndices: true,
|
||||
withEndIndices: true,
|
||||
xmlMode: true,
|
||||
decodeEntities: true,
|
||||
lowerCaseTags: true,
|
||||
|
||||
3
types/cheerio/index.d.ts
vendored
3
types/cheerio/index.d.ts
vendored
@ -8,6 +8,7 @@
|
||||
// Chennakrishna <https://github.com/chennakrishna8>
|
||||
// AzSiAz <https://github.com/AzSiAz>
|
||||
// Ryo Ota <https://github.com/nwtgck>
|
||||
// Trevor Reed <https://github.com/trevorhreed>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
@ -235,6 +236,8 @@ interface CheerioOptionsInterface {
|
||||
recognizeCDATA?: boolean;
|
||||
recognizeSelfClosing?: boolean;
|
||||
normalizeWhitespace?: boolean;
|
||||
withStartIndices?: boolean;
|
||||
withEndIndices?: boolean;
|
||||
ignoreWhitespace?: boolean;
|
||||
_useHtmlParser2?: boolean;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user