0

I'm learning JavaScript (not Node.js and not React.js, just plain JavaScript). Working on a simple project, everything is working but I'm getting a warning from tsserver

enter image description here Here is the contents of my package.json file

enter image description here

It looks like I need to add a declaration file. Here are my questions:

  1. Where do I need to place a declaration file?
  2. Is creating an empty declaration file going to break anything? By empty I mean the file will only contain the following code, declare module 'fractional'
  3. Why is it me who needs to add a declaration, why the package doesn't have it? It looks to me like a package which is used by a lot of people, so I was expecting for someone to have fixed the issue by now. Given that it hasn't been, looks like I'm missing something. So what is it I'm missing?
flashburn
  • 4,180
  • 7
  • 54
  • 109

0 Answers0