Skip to content

Commit

Permalink
updating the type of options in the parse function
Browse files Browse the repository at this point in the history
  • Loading branch information
ananyasaxena authored Mar 22, 2019
1 parent a37b7cc commit 559050a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,9 @@ const kBlockTextElements = {
export function parse(data: string, options?: {
lowerCaseTagName?: boolean;
noFix?: boolean;
script?: boolean;
style?: boolean;
pre?: boolean;
}) {
const root = new HTMLElement(null, {});
let currentParent = root;
Expand Down Expand Up @@ -866,4 +869,4 @@ export function parse(data: string, options?: {
response.valid = valid;
return response;
}
}
}

0 comments on commit 559050a

Please sign in to comment.