Skip to content

Instantly share code, notes, and snippets.

@Klerith
Klerith / index.ts
Last active May 4, 2024 13:02
Vuex + TypeScript - Store Structure Strongly Typed
import { createStore } from 'vuex';
// My custom modules
import exampleModule from './module-template';
import { ExampleStateInterface } from './module-template/state';
export interface StateInterface {
// Define your own store structure, using submodules if needed
// example: ExampleStateInterface;