Skip to content

Conversation

@younggglcy
Copy link
Contributor

This PR should close #90

Changes made in this PR:

  1. bump p-event dependency version to latest
  2. replace outdated pEvent.iterator with pEventIterator
  3. explicitly passing the generic argument to pEventIterator to make types match, because Emittery.on's type is more narrow than EventEmitter in p-event, which infer specific literal strings as its argument, e.g. "data", "error" in this case.

@sindresorhus sindresorhus merged commit 2eea7f7 into sindresorhus:main Feb 13, 2024
@younggglcy younggglcy deleted the GODLiangCY/issue90 branch March 16, 2024 16:22
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.

Fix type compatibility with p-event

2 participants