I’m trying to use places.js in a React/Typescript project. I figured out that there are types in the DefinitelyTyped project and am trying to use them with no luck. The problem seems to be that while the places library is called “places.js” the types are referred to simply as “places”. So when I try to do:
import places from 'places.js';
it tells me that it could not find a declaration file. When I try to do:
import places from 'places'
my text editor is happy but the compiler says:
Module not found: Can't resolve 'places'
I also tried to just copy the declarations from the DefinitelyTyped repo and change things to refer to places.js, but it seems like the dot in the middle of the name is causing syntax errors. I feel pretty confident that there’s something dumb I’m missing here, but would love some help.