vuex-exact
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

vuex-exact

Aim

The package is aiming for strongly typing vuex store for better development experience

Install

npm i vuex-exact

Usage

import Vue from 'vue'
import Vuex from 'vuex'
import { UnpackStore } from 'vuex-exact'

const options = {
    state: {
        example: 0
    },
    mutations:{
        mute: (state: any, payload: string) => {}
    }
    /*store options*/
}

export default new Vuex.Store(options)

export type StoreType = UnpackStore<StoreOptions>

Readme

Keywords

Package Sidebar

Install

npm i vuex-exact

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

6.11 kB

Total Files

9

Last publish

Collaborators

  • maciej-dot