ChrisCavs/t-writer.js

Could not find a declaration file for module t-writer.js

viztastic opened this issue · 4 comments

Hi @ChrisCavs

Thanks so much for this library, been using it heavily (e.g. skyledge.com and fleetfoundry.com)

I'm building a new website with Angular 12 and getting this strange error when I import it into my component:

Could not find a declaration file for module 't-writer.js'. '/Users/a../node_modules/t-writer.js/dist/t-writer.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/t-writer.js` if it exists or add a new declaration (.d.ts) file containing `declare module 't-writer.js';`ts(7016)

Is there a typings file for this by any chance? Or could this be something else interfering?

Thanks in advance!

The above same issue arises here too. Any solution ????

@rakeshbaral92 it seems this library isn't maintained anymore, I ended up switching to https://github.com/tameemsafi/typewriterjs#readme

it worked with Angular 12 perfect (checkout flowbench.io - I used it there)

Philio commented

I forked it and added TS type declarations and updated the build dependencies see - https://www.npmjs.com/package/@philio/t-writer.js
Using it on an Angular 17 project and works well.