Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): move ItemProps declaration to seperate file and include in index #658

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dominiccarrington
Copy link
Collaborator

Description

This PR does the following:

  • Renames src/index.js to src/index.ts
  • Moves updating the type definition of ItemProps (from @react-types/shared) to a seperate file and includes this file in index.

This fixes Typescript in Cantina not understanding that we have updated the type definition. Including src/types/item.ts in index means that when @momentum-ui/react-collaboration is imported, the updated definition will be used.

Renaming src/index.js to src/index.ts is required because the import of types/item.ts must be included in index.d.ts when built. If it remains index.js, the import isn't included.

@dominiccarrington dominiccarrington added the validated If the pull request is validated automation. label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validated If the pull request is validated automation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant