infinite-carousel-wc icon indicating copy to clipboard operation
infinite-carousel-wc copied to clipboard

Provide typings for React TSX consumers

Open wes-goulet opened this issue 5 years ago • 0 comments

Need to make it easier for react typescript consumers to have type checking when using <infinite-carousel-wc> in their TSX. The type definition will look something like:

declare namespace JSX {
  interface IntrinsicElements {
    "infinite-carousel-wc": {<attributes and events go here>};
  }
}

I can declare that as part of this project (but this the project has to take a dev dependency on (p)react so I can see the JSX and IntrinsicElements namespace.... or I can just provide a code example for a developer to copy/paste into the consuming project.

wes-goulet avatar Mar 19 '19 05:03 wes-goulet