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 #75

Closed
robsontenorio opened this issue Jan 9, 2018 · 2 comments
Closed

Typescript #75

robsontenorio opened this issue Jan 9, 2018 · 2 comments

Comments

@robsontenorio
Copy link

robsontenorio commented Jan 9, 2018

So... wont work :(

methods: {
  async fetchSomething() {
    const ip = await this.$axios.$get('http://icanhazip.com')
    this.ip = ip
  }
}
This question is available on Nuxt.js community (#c64)
@robsontenorio
Copy link
Author

I can do it by

const ip = await this["$axios"].$get("http://icanhazip.com");

But i dont think it is a elegant solution.

@pi0
Copy link
Member

pi0 commented Jan 28, 2018

Hi. Would you please provide more details? I mean why typeScript doesn't support $ prefixed function? If possible please provide a repro example and reopen the issue. I would be happy to help to resolve this.

@pi0 pi0 closed this as completed Jan 28, 2018
pi0 pushed a commit that referenced this issue May 21, 2018
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