I am importing Algolia's places.js with the following line:
import * as places from 'places.js';
And further down:
const placesAutocomplete = places({
appId: 'plTI5MDAXXXX',
apiKey: '7d055eac95a6c48eb4939d2d5edXXXX',
container: document.querySelector('#address-input')
});
And I am getting the following error:
error TS2349: Cannot invoke an expression whose type lacks a call signature.
Type `typeof import("ionic/XXXX/node_modules/places.js/typings")' has no compatible call signatures.
I already tried installing DefinitelyTyped/DefinitelyTyped to no avail.