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

feat(Parser): exports Handler interface from Parser #1690

Merged
merged 2 commits into from
Jan 5, 2024
Merged

feat(Parser): exports Handler interface from Parser #1690

merged 2 commits into from
Jan 5, 2024

Conversation

benkroeger
Copy link
Contributor

exports the Handler interface so consumers who implement typesafe Handlers don't need to do something along the lines of this:

import type { Parser } from 'htmlparser2';

type Handler = NonNullable<ConstructorParameters<typeof Parser>[0]>;

@fb55 fb55 merged commit a0f4f4b into fb55:master Jan 5, 2024
8 checks passed
@fb55
Copy link
Owner

fb55 commented Jan 5, 2024

Thanks @benkroeger!

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

Successfully merging this pull request may close these issues.

2 participants