aboutsummaryrefslogtreecommitdiff
path: root/node_modules/cheerio/lib/options.d.ts
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-09 17:58:07 +0100
committerMinteck <contact@minteck.org>2022-02-09 17:58:07 +0100
commit22a25ded9f7d9c9a96cce8d1bc12475ca0434201 (patch)
tree0e33d0650fe58f41c00bbc4b8047956905766823 /node_modules/cheerio/lib/options.d.ts
parent8f54d903fb3470823a5e4d6ff4655de009836245 (diff)
downloadyoutoo-22a25ded9f7d9c9a96cce8d1bc12475ca0434201.tar.gz
youtoo-22a25ded9f7d9c9a96cce8d1bc12475ca0434201.tar.bz2
youtoo-22a25ded9f7d9c9a96cce8d1bc12475ca0434201.zip
Major update
Diffstat (limited to 'node_modules/cheerio/lib/options.d.ts')
-rw-r--r--node_modules/cheerio/lib/options.d.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/node_modules/cheerio/lib/options.d.ts b/node_modules/cheerio/lib/options.d.ts
new file mode 100644
index 0000000..d1c8df3
--- /dev/null
+++ b/node_modules/cheerio/lib/options.d.ts
@@ -0,0 +1,31 @@
+import type { DomHandlerOptions } from 'domhandler';
+import type { ParserOptions } from 'htmlparser2';
+/** Options accepted by htmlparser2, the default parser for XML. */
+export interface HTMLParser2Options extends DomHandlerOptions, ParserOptions {
+}
+/** Options for parse5, the default parser for HTML. */
+export interface Parse5Options {
+ /** Disable scripting in parse5, so noscript tags would be parsed. */
+ scriptingEnabled?: boolean;
+ /** Enable location support for parse5. */
+ sourceCodeLocationInfo?: boolean;
+}
+/** Internal options for Cheerio. */
+export interface InternalOptions extends HTMLParser2Options, Parse5Options {
+ _useHtmlParser2?: boolean;
+}
+/**
+ * Options accepted by Cheerio.
+ *
+ * Please note that parser-specific options are *only recognized* if the
+ * relevant parser is used.
+ */
+export interface CheerioOptions extends HTMLParser2Options, Parse5Options {
+ /** Suggested way of configuring htmlparser2 when wanting to parse XML. */
+ xml?: HTMLParser2Options | boolean;
+}
+declare const defaultOpts: CheerioOptions;
+/** Cheerio default options. */
+export default defaultOpts;
+export declare function flatten(options?: CheerioOptions | null): InternalOptions | undefined;
+//# sourceMappingURL=options.d.ts.map \ No newline at end of file