Skip to content

Export interfaces to be avaiable through package import #7

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

Open
prabuvenkat-gh opened this issue Nov 6, 2024 · 0 comments
Open

Export interfaces to be avaiable through package import #7

prabuvenkat-gh opened this issue Nov 6, 2024 · 0 comments

Comments

@prabuvenkat-gh
Copy link

Currently if I want to use the prop-types from the package, I would need to import the required file from the dist. For example:

import { Circle } from 'rough-react-wrapper';
import { CircleProps } from 'rough-react-wrapper/dist/components/Drawables/Circle/Circle.interfaces';

This is because the interfaces are exported separately through .interfaces.d.ts. Could the prop interfaces also be exported directly from index.d.ts files so they are available for import directly from the package, instead? So that the import would be the much simpler:

import { Circle, CircleProps } from 'rough-react-wrapper';

Can submit a PR for all the components if you can grant branch and PR rights. Thanks!

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

No branches or pull requests

1 participant