create-quasar
Advanced tools
Comparing version 1.0.29 to 1.0.30
{ | ||
"name": "create-quasar", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "Scaffolds Quasar Apps, AppExtensions or UI kits", | ||
@@ -5,0 +5,0 @@ "author": { |
import { store } from 'quasar/wrappers' | ||
import { createPinia } from 'pinia' | ||
import { Router } from 'vue-router'; | ||
/* | ||
* When adding new properties to stores, you should also | ||
* extend the `PiniaCustomProperties` interface. | ||
* @see https://pinia.vuejs.org/core-concepts/plugins.html#typing-new-store-properties | ||
*/ | ||
declare module 'pinia' { | ||
export interface PiniaCustomProperties { | ||
readonly router: Router; | ||
} | ||
} | ||
/* | ||
* If not building with SSR mode, you can | ||
@@ -6,0 +18,0 @@ * directly export the Store instantiation; |
import { store } from 'quasar/wrappers' | ||
import { InjectionKey } from 'vue' | ||
import { Router } from 'vue-router' | ||
import { | ||
@@ -38,2 +39,9 @@ createStore, | ||
// Provide typings for `this.$router` inside Vuex stores | ||
declare module "vuex" { | ||
export interface Store<S> { | ||
readonly $router: Router; | ||
} | ||
} | ||
export default store(function (/* { ssrContext } */) { | ||
@@ -40,0 +48,0 @@ const Store = createStore<StateInterface>({ |
import { store } from 'quasar/wrappers' | ||
import { createPinia } from 'pinia' | ||
import { Router } from 'vue-router'; | ||
/* | ||
* When adding new properties to stores, you should also | ||
* extend the `PiniaCustomProperties` interface. | ||
* @see https://pinia.vuejs.org/core-concepts/plugins.html#typing-new-store-properties | ||
*/ | ||
declare module 'pinia' { | ||
export interface PiniaCustomProperties { | ||
readonly router: Router; | ||
} | ||
} | ||
/* | ||
* If not building with SSR mode, you can | ||
@@ -6,0 +18,0 @@ * directly export the Store instantiation; |
import { store } from 'quasar/wrappers' | ||
import { InjectionKey } from 'vue' | ||
import { Router } from 'vue-router' | ||
import { | ||
@@ -38,2 +39,9 @@ createStore, | ||
// Provide typings for `this.$router` inside Vuex store | ||
declare module "vuex" { | ||
export interface Store<S> { | ||
readonly $router: Router; | ||
} | ||
} | ||
export default store(function (/* { ssrContext } */) { | ||
@@ -40,0 +48,0 @@ const Store = createStore<StateInterface>({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
893791
6190