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

Export DialogProps type #348

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

Conversation

martynaskadisa
Copy link

When trying to use Vaul in a component library that also re-exports TypeScript types (via something like vite-plugin-dts), type generation would fail with an external module error:

error TS4023: Exported variable 'Root' has or is using name 'WithFadeFromProps' from external module "/%project%/node_modules/vaul/dist/index" but cannot be named.

Marking DialogProps with an export keyword fixes this issue. There's also a bonus of not having to use React.ComponentProps<T> when the type is properly exported from the library.

Copy link

vercel bot commented May 9, 2024

@martynaskadisa is attempting to deploy a commit to the emil Team on Vercel.

A member of the Team first needs to authorize 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.

None yet

1 participant