react-chat-elements
react-chat-elements copied to clipboard
Typescript type declaration
Type declaration for React Typescript
i need this also
+1
+1
I'm using the typescript branch
I had to modify the code a bit, but it works
@kodunmi what branch is typescript branch?
@andrewhamili sorry its not a branch, its another repo. https://github.com/tonnenpinguin/react-chat-elements/tree/typescript_migration
@andrewhamili sorry its not a branch, its another repo. https://github.com/tonnenpinguin/react-chat-elements/tree/typescript_migration
It's 84 commits behind Detaysoft:master
Type declarations are needed
you literally just create a CreateReactElements.d.ts
file (anywhere, really), and then copy/paste what it tells you: declare module react-chat-elements
. That will remove that error.
Other than that, depending on usage, you might have to create your own typescript declarations, but it is mostly just the definitions of types that your compiler is complaining about, so you only do for what you need.