Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript support #12

Open
ponnex opened this issue Aug 8, 2019 · 1 comment
Open

Typescript support #12

ponnex opened this issue Aug 8, 2019 · 1 comment

Comments

@ponnex
Copy link

ponnex commented Aug 8, 2019

Can we add typings for typescript support? Or how do we add custom typings for vue interface this.$google?

@harlet
Copy link

harlet commented Mar 29, 2020

You can create your own.

Here's mine:

import Google from 'nuxt-google-maps-module'
import Vue from 'vue'

declare module 'vue/types/vue' {
  interface Vue {
    $google: Google
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants