You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extracted types in index.ts (both esm, cjs) in a published package having the following declaration
exportdeclareclassFSWatcherextendsEventEmitter{
ending up with any type inferred for event handlers
watch('src').on('all',(event,path)=>{debounceSrc(path)})// Unsafe argument of type `any` assigned to a parameter of type `string`.eslint[@typescript-eslint/no-unsafe-argument](https://typescript-eslint.io/rules/no-unsafe-argument)(parameter)path: any
Versions (please complete the following information):
Chokidar version 4.0.1
Node version 20.17.0
OS version: MacOS Sonoma
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
export declare class FSWatcher extends EventEmitter<FSWatcherEventMap> {
Additional context
Add any other context about the problem here.
Optionally nice to know what project you are working on.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: