I noticed that this package was generating types but then told npm to only publish browser.js and index.js and not the actually generated types.
This fixes that + generates declarations maps + validates the types with TS strict=true.
It also adds a tsconfig.json to tell eg. VSCode that hey, this repository wants you to make use of TS types in index.js.
Tell me if you want me to pull something of this PR and I'll make it more granular 👍
Note: I bumped the lowest supported Node-version to a reasonable current LTS-focused version range so that the tsconfig.json file could be pointed towards a reasonable fitting definition with correct lib definition: es2020
I noticed that this package was generating types but then told
npm
to only publishbrowser.js
andindex.js
and not the actually generated types.This fixes that + generates declarations maps + validates the types with TS
strict=true
.It also adds a
tsconfig.json
to tell eg. VSCode that hey, this repository wants you to make use of TS types inindex.js
.Tell me if you want me to pull something of this PR and I'll make it more granular 👍
Note: I bumped the lowest supported Node-version to a reasonable current LTS-focused version range so that the
tsconfig.json
file could be pointed towards a reasonable fitting definition with correctlib
definition:es2020
Fixes #15
Closes #20