Skip to content

feat: Add entry point types - #8009

Draft
camdecoster wants to merge 6 commits into
mainfrom
cam/8004/add-entry-point-types
Draft

feat: Add entry point types#8009
camdecoster wants to merge 6 commits into
mainfrom
cam/8004/add-entry-point-types

Conversation

@camdecoster

@camdecoster camdecoster commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Description

Add TypeScript types for entry points in lib/.

Closes #8004.

Changes

  • Add entry point types and generator scripts
  • Update CI
  • Update TS docs

Testing

Check that CI is passing.

Notes

  • There are a number of alternate entry points for plotly.js in lib/
  • This PR adds types for these in addition to the main entry point lib/index.js
  • I opted to locate these in the generated types folder rather than along with the entry point files to keep things tidy
  • Type resoultion happens via the typesVersions object in package.json
  • The types are generated rather than hand written. This might not be necessary given that the entry points don't change very often, but it makes it automated so we don't have to think about 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.

[BUG]: components don't have type definitions

1 participant