Skip to content

Export interfaces to be avaiable through package import #7

Description

@prabuvenkat-gh

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions