Skip to content

feat(types): bundle TypeScript definitions (migrated from DefinitelyTyped) - #68

Merged
polygonplanet merged 3 commits into
masterfrom
feature/add-types
Sep 11, 2026
Merged

feat(types): bundle TypeScript definitions (migrated from DefinitelyTyped)#68
polygonplanet merged 3 commits into
masterfrom
feature/add-types

Conversation

@polygonplanet

Copy link
Copy Markdown
Owner

This PR bundles TypeScript type definitions into the package so that encoding-japanese no longer depends on @types/encoding-japanese.
This change will be included in the next release.

  • Import TypeScript declarations from DefinitelyTyped (no API changes)
  • Add index.d.ts and add the "types" field to package.json
  • Update type tests to run with tsc
  • Add credits and license notices for DefinitelyTyped type definitions

Many thanks to @rhysd, @peterblazejewicz, and the DefinitelyTyped contributors for creating and maintaining these type definitions!

- Add "types": "index.d.ts" to package.json
- Add "test:types" script to package.json
- Add typescript to devDependencies
@polygonplanet
polygonplanet merged commit dc62893 into master Sep 11, 2026
18 checks passed
@polygonplanet
polygonplanet deleted the feature/add-types branch September 11, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant