Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with TS validator #21

Open
adepaz-webimpacto opened this issue Mar 29, 2019 · 0 comments
Open

Problems with TS validator #21

adepaz-webimpacto opened this issue Mar 29, 2019 · 0 comments

Comments

@adepaz-webimpacto
Copy link

adepaz-webimpacto commented Mar 29, 2019

TS2345: Argument of type '{ script: boolean; }' is not assignable to parameter of type '{ lowerCaseTagName?: boolean; noFix?: boolean; }'.
Object literal may only specify known properties, and 'script' does not exist in type '{ lowerCaseTagName?: boolean; noFix?: boolean; }'

The function is declared like
export function parse(data: string, options?: {
lowerCaseTagName?: boolean;
noFix?: boolean;
}) {

So the params of the func are not declared, and not pass TS validation.

iamabubakar pushed a commit to iamabubakar/node-fast-html-parser that referenced this issue Sep 8, 2020
Add getAttribute, fix tests, fix rawAttributes, fix setAttribute when the value is number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant