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
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
When importing version 2.0.3, TypeScript types are completely messed up:
It's impossible to use Promises as returned methods. Taking one method as example: exists(options: any, callback?: any): void;. The documentation says that it can be used with Promises too (and it works), but the type definition shows return type as void.
Types are just wrong. In the same method, the JSDoc definition says that the first argument (options) is optional, but the method signature marks it mandatory.
The library uses any as type anywhere. Options dictionaries, callbacks, etc: these are things that should be explicitly typed.
The library still uses JSDoc types everywhere, which should be migrated to TypeScript definitions.
When importing version 2.0.3, TypeScript types are completely messed up:
exists(options: any, callback?: any): void;. The documentation says that it can be used with Promises too (and it works), but the type definition shows return type as void.anyas type anywhere. Options dictionaries, callbacks, etc: these are things that should be explicitly typed.