Open rostislav-simonik opened 2 days ago
pull requests welcome
@paulmillr he's just too soon
the PR to add those strongly typed events hasn't been released yet
it is in main but we haven't published a new version of chokidar yet, so it won't be on npm
if you can publish a new version, that'd be helpful
Describe the bug
Depsite generic type in index.ts is declared properly
extracted types in index.ts (both esm, cjs) in a published package having the following declaration
ending up with any type inferred for event handlers
Versions (please complete the following information):
To Reproduce:
Self explanatory, but can provide it later if needed
Most valuable could be one or more test cases for test.js to demonstrate the problem.
Expected behavior The published package should have a type declaration with a generic type
Additional context Add any other context about the problem here. Optionally nice to know what project you are working on.