olefirenko / vue-google-autocomplete

A Vue.js autosuggest component for the Google Places API.
https://olefirenko.github.io/vue-google-autocomplete/
MIT License
507 stars 258 forks source link

How to use in typescript #129

Closed MKBLR23 closed 4 years ago

MKBLR23 commented 4 years ago

Error:(5, 35) TS2307: Cannot find module 'vue-google-autocomplete'. install @tyeps/vue-google-autocomplete as dev dependency.

on3dd commented 4 years ago

Have you solved this problem?

MKBLR23 commented 4 years ago

Yes @on3dd, using declare module 'vue-google-autocomplete';

shubham-dianapps commented 3 years ago

Yes @on3dd, using declare module 'vue-google-autocomplete';

@MKBLR23 can you help me, how did you solve it?

MKBLR23 commented 3 years ago

image

I have create one .d.ts file for this and declare the module. Please follow the screen shot I have shared.

shubham-dianapps commented 3 years ago

I did that, but then I was getting the following error -> @typescript-eslint/no-unsafe-assignment for now, I Have updated the eslint rules, but did you also face the same?