I've added two elements to support usage of this component in TypeScript:
1) An index.d.ts that provides the types for the props and the component to be used in a TypeScript environment.
2) Update to the package.json that brings the types into TypeScript.
You will need to keep the types file (index.d.ts) updated going forward if you update the props.
An example situation is as follows (from one of my own components):
I've added two elements to support usage of this component in TypeScript:
1) An index.d.ts that provides the types for the props and the component to be used in a TypeScript environment. 2) Update to the package.json that brings the types into TypeScript.
You will need to keep the types file (index.d.ts) updated going forward if you update the props.
An example situation is as follows (from one of my own components):
Thanks for the component!