Problem with TypeScript
kayoroxa opened this issue · 3 comments
kayoroxa commented
jess-maldonado commented
Commenting as I've had the same issue and have been unable to resolve.
ceboola commented
basically if its lacks of types just make your own types or just declare them as 'any' for now:
- create file react-textfit.d.ts in your typings folder with should be configured with your tsconfig
declare module 'react-textfit';
save and thats all
c0ncentus commented
const Textfit= require('react-textfit');
and install npm i --save @types/node
and wait until ts is supported is what i do always when i intergrate jsx component without definition type.