Skip to content

feat: add typescript types - #972

Open
43081j wants to merge 1 commit into
web-push-libs:masterfrom
43081j:jg/types
Open

feat: add typescript types#972
43081j wants to merge 1 commit into
web-push-libs:masterfrom
43081j:jg/types

Conversation

@43081j

@43081j 43081j commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Adds the correct JSDoc so we can use typescript to generate d.ts from it.

@marco-c this is more a nice-to-have. we have good enough JSDoc to generate the types so it might be nice to do so and publish them.

if you don't think we should, though, let me know.

Comment thread src/http_ece.d.ts
@@ -0,0 +1,33 @@
declare module 'http_ece' {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add these in http_ece?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its in the web-push-libs org so presumably we can land a PR there. i can open one when i get chance 👍

it doesn't need to block this for now though IMO

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't block on the asn1 one, but maybe on this one yes, so we don't need to do another PR to remove them once it's done in http_ece directly. WDYT?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I can try find time to look 👍

Comment thread src/asn1.d.ts
@@ -0,0 +1,57 @@
declare module 'asn1.js' {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add these in asn1.js?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it hasn't changed in many years so i'm not very confident we will manage to add them. i can open an issue though

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try, you never know!

Adds the correct JSDoc so we can use typescript to generate `d.ts` from
it.
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.

2 participants