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
Here is the contents of my
package.json
file
It looks like I need to add a declaration file. Here are my questions:
- Where do I need to place a declaration file?
- 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'
- 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?