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

typescript type error #377

Open
Jarvis2018 opened this issue May 19, 2022 · 3 comments
Open

typescript type error #377

Jarvis2018 opened this issue May 19, 2022 · 3 comments

Comments

@Jarvis2018
Copy link

when i use typescript, the method process second arg tip type error

image

Environment

OS node npm/yarn package
macos 16.13.2 yarn 1.22.18] 0.16.6
@Scrum
Copy link
Member

Scrum commented May 19, 2022

@Jarvis2018
Copy link
Author

@Jarvis2018 because this is not posthtml option https://github.com/posthtml/posthtml/blob/master/docs/core.md#posthtml-options

if i use posthtml-parser options https://github.com/posthtml/posthtml-parser#options , what should i do ?

@Scrum
Copy link
Member

Scrum commented May 25, 2022

yes, in theory it should combine options from https://github.com/posthtml/posthtml-parser/blob/0db4129ec0be89d3278149a4f8140a0c97facd6e/src/index.ts#L10

We will be happy with your PR if you have time for it, but somewhere in the future we will transfer this project to the TS

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

2 participants