discord-message-components icon indicating copy to clipboard operation
discord-message-components copied to clipboard

Typescript definitions are not exported

Open GuskiS opened this issue 3 years ago • 3 comments

Tried installing react package, but seems that typescript are not present in dist. Same with core.

image

Can these be included?

GuskiS avatar Aug 17 '21 19:08 GuskiS

Yeah, Same problem with me. TS7016: Could not find a declaration file for module '@discord-message-components/react'. '/Users/gaurish/Desktop/Coding/Cofo-Web/node_modules/@discord-message-components/react/dist/react.umd.js' implicitly has an 'any' type.

gaurishhs avatar Feb 05 '22 07:02 gaurishhs

This should be fixed

Lianecx avatar Sep 12 '22 13:09 Lianecx

Hey, I have the same problem.

Could not find a declaration file for module '@discord-message-components/react'. 

'/home/nonso/Documents/Code/Projects/Summarium/summarium-website/

node_modules/@discord-message-components/react/dist/react.umd.js' implicitly has an 'any' type.

Try `npm i --save-dev @types/discord-message-components__react` if it exists or add 

a new declaration (.d.ts) file containing `declare module '@discord-message-components/react';`ts(7016)

I'm using yarn so I tried yarn add @types/discord-message-components__react --dev and I got

error An unexpected error occurred: 
"https://registry.yarnpkg.com/@types%2fdiscord-message-components__react: Not found".

info If you think this is a bug, please open a bug report with the information provided in 

"/home/nonso/Documents/Code/Projects/Summarium/summarium-website/yarn-error.log".

Jemeni11 avatar Dec 31 '22 09:12 Jemeni11