We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.on
Event names work fine but the types for each event is coming as any.
any
The text was updated successfully, but these errors were encountered:
You should declare the payload type with a function type, like:
const ee = new EventEmitter<{ data: (dataEventPayload: DataEventPayload) => void; }>(); // You can get `DataEventPayload` here ee.on('data', (data) => {});
Sorry, something went wrong.
Ohh ok. That makes sense. On the other hand, the api shouldn't allow me for what I did. It's a minor convenience issue but still
No branches or pull requests
Event names work fine but the types for each event is coming as
any
.The text was updated successfully, but these errors were encountered: