Skip to content

feat: add typescript types - #94

Open
43081j wants to merge 2 commits into
web-push-libs:mainfrom
43081j:jg/types
Open

43081j wants to merge 2 commits into
web-push-libs:mainfrom
43081j:jg/types

Conversation

@43081j

@43081j 43081j commented Oct 29, 2026

Copy link
Copy Markdown

Depends on #93.

Adds typescript as a dev dependency and introduces JSDoc types so we can
emit our own type definitions.

These are output to types/.

This migrates the syntax to standard ES modules (`import`/`export`) and
reworks `var` to be `let`/`const`.

Publishing this means anyone on a Node older than 20, using CommonJS,
will not be able to `require(...)` it. Older Node can `import` it fine,
and all modern Node can `require` or `import` it either way.
Adds typescript as a dev dependency and introduces JSDoc types so we can
emit our own type definitions.

These are output to `types/`.
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