infinite-carousel-wc
infinite-carousel-wc copied to clipboard
Provide typings for React TSX consumers
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.