Skip to content

Commit

Permalink
feat(types): Improve load type (#1584)
Browse files Browse the repository at this point in the history
Allows setting `isDocument` to `false`, and passing `null` to `options`.
  • Loading branch information
f0x52 committed Dec 23, 2020
1 parent 1062a6c commit 6a90bda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/index.d.ts
Expand Up @@ -267,7 +267,8 @@ declare namespace cheerio {
version: string;
load(
html: string | { toString(): string },
options?: CheerioParserOptions
options?: CheerioParserOptions|null,
isDocument?: boolean
): Root;
load(element: Element, options?: CheerioParserOptions): Root;
}
Expand Down

0 comments on commit 6a90bda

Please sign in to comment.