Skip to content

Commit

Permalink
fix: add namespaced and strict properties to store interfaces (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniluk4000 authored and danielroe committed Apr 29, 2022
1 parent 16634aa commit bb5ff8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/typed-vuex/src/types/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export interface BlankStore {
mutations: {}
actions: {}
modules: {}
namespaced: boolean
strict: boolean
}

export interface NuxtStore {
Expand All @@ -24,6 +26,8 @@ export interface NuxtStore {
mutations: Record<string, any>
actions: Record<string, any>
modules: NuxtModules
namespaced: boolean
strict: boolean
}

export interface NuxtStoreInput<
Expand All @@ -33,6 +37,7 @@ export interface NuxtStoreInput<
A,
S extends { [key: string]: Partial<NuxtStore> }
> {
strict?: boolean
namespaced?: boolean
state: T
getters?: G
Expand Down

1 comment on commit bb5ff8d

@vercel
Copy link

@vercel vercel bot commented on bb5ff8d Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.