Skip to content

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

Merged
fb55 merged 2 commits intofb55:masterfrom
benkroeger:patch-1
Jan 5, 2024
Merged

feat(Parser): exports Handler interface from Parser#1690
fb55 merged 2 commits intofb55:masterfrom
benkroeger:patch-1

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
@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