Browse Source

Add file definitions for TS

main
Haris Razis 4 years ago
parent
commit
282b279a8f
No known key found for this signature in database GPG Key ID: 86A4D290ED03FAB4
  1. 6
      web/src/shims-vue.d.ts
  2. 7
      web/src/slims-vuex.d.ts

6
web/src/shims-vue.d.ts

@ -1,5 +1,5 @@
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
import type {DefineComponent} from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}

7
web/src/slims-vuex.d.ts

@ -0,0 +1,7 @@
import { Store } from '@/store';// path to store file
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$store: Store;
}
}
Loading…
Cancel
Save