josk
josk copied to clipboard
👨💻 Add types declaration file
Closes #17
It should be good for the initial types.
I do not change the package.json since this package provide both cjs and esm.
Having the types field may get things weird in types resolving.
.d.cts should match .cjs and .d.ts should match .js automatically.
@dr-dimitru Can you double check the current types if it meet the actual implementation?