Closed ahocevar closed 2 years ago
The failing tests are unrelated to this pull request - they currently also fail in the default branch.
Rebased and updated so types are also generated for the dist-module/
directory, where they will be most useful because they match the file structure.
This pull request adds the tooling to generate and publish types as
*.d.ts
files. It also makes minor adjustments togeotiff
andgeotiffimage
to use the correct types for their respective APIs.To make JSDoc work with type imports, I pulled in
jsdoc-plugin-typescript
.When the library is restructured as suggested in #242, the
"checkJs": true
setting can be added totsconfig.json
, and the whole library can be properly type annotated. Right now this would not really work because the Parcel generated single script module does not match the module structure thattsc
generates. But even with just this pull request, the generated types are already useful for application developers.Supersedes #230. Fixes #225.