This is a basic index.d.ts file that makes the module work out of the box with TypeScript. Without types, TypeScript users (like us) like us may not give the module a shot.
The stub is fully functional with the example use case in readme.md (just assigns a generic function type to the default export).
(.d.ts files can be in DefinitelyTyped or bundled with the module, as with this pull request; the latter means one less step for users of the module.)
This is a basic index.d.ts file that makes the module work out of the box with TypeScript. Without types, TypeScript users (like us) like us may not give the module a shot.
The stub is fully functional with the example use case in readme.md (just assigns a generic function type to the default export).
(.d.ts files can be in DefinitelyTyped or bundled with the module, as with this pull request; the latter means one less step for users of the module.)
Thanks for taking a look!