question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vuexfire: Typescript support

See original GitHub issue

I can see that typescript support has been added for vuexfire but there seems to be no typedefinition files included in the node_module. Am I missing something?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
posvacommented, Jul 25, 2019

it’s like this:

@Component({
  firestore() {
    return {}
  },
})
export default Page extends Vue {}

For some reason typings do not work when using @Component but they do for regular components. I will have to ask them

BTW, any extra option created by plugins go there (see 5. https://github.com/vuejs/vue-class-component#usage)

0reactions
alexeigscommented, Jul 24, 2019

I haven’t found any example showing the right implementation for class-style Vue components. How would the following need to look like in a class-style component? Many thanks for your support.

export default {
  name: 'Comics',
  data () {
    return {
      comics: [],
    }
  },
  firestore () {
    return {
      comics: db.collection('comics')
    }
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

vuexfire - npm
Start using vuexfire in your project by running `npm i vuexfire`. ... TypeScript icon, indicating that this package has built-in type ...
Read more >
TypeScript Support - Vuex
TypeScript Support #. Vuex provides its typings so you can use TypeScript to write a store definition. You don't need any special TypeScript...
Read more >
Usage with vuexfire - Nuxt Firebase
Vuexfire and this module work very well together. This example shows how to use these two packages together, working with SSR.
Read more >
Using Firebase in a Vue App with Vuexfire — Updating and ...
In this article, we'll look at how to use Vuefire and Vuexfire to add support for Cloud Firestore database manipulation into our Vue...
Read more >
I use typed-vuex ,work without nuxt, I can not solve this error
typescript · vue.js · firebase-realtime-database · vuexfire.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found