- Complete GGZ Ecademy Nuxt.js user portal - Learning products browser and management - Member management interface - User authentication and roles - Multi-language support (NL/EN) - Vuex store for state management - Component-based architecture
This commit is contained in:
19
types/plugins/constants/index.d.ts
vendored
Normal file
19
types/plugins/constants/index.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import Vue from 'vue';
|
||||
import { Store } from 'vuex';
|
||||
import { ALL_CONSTANT } from '~/plugins/constants';
|
||||
|
||||
type ConstantMap<T = typeof ALL_CONSTANT> = {
|
||||
[K in keyof T]: T[K];
|
||||
};
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
readonly $constants: ConstantMap;
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vuex/types' {
|
||||
interface Store {
|
||||
readonly $constants: ConstantMap;
|
||||
}
|
||||
}
|
||||
5
types/typedefs/store.js
Normal file
5
types/typedefs/store.js
Normal file
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* @typedef {import('vuex').ActionTree<typeof state>} ActionTree
|
||||
*/
|
||||
|
||||
exports.unused = {};
|
||||
Reference in New Issue
Block a user