-
Notifications
You must be signed in to change notification settings - Fork 1
Export interfaces to be avaiable through package import #7
Copy link
Copy link
Open
Description
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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels