Skip to content

Commit 6a90bda

Browse files
authored
feat(types): Improve load type (#1584)
Allows setting `isDocument` to `false`, and passing `null` to `options`.
1 parent 1062a6c commit 6a90bda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/index.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ declare namespace cheerio {
267267
version: string;
268268
load(
269269
html: string | { toString(): string },
270-
options?: CheerioParserOptions
270+
options?: CheerioParserOptions|null,
271+
isDocument?: boolean
271272
): Root;
272273
load(element: Element, options?: CheerioParserOptions): Root;
273274
}

0 commit comments

Comments
 (0)