|
@@ -1,7 +1,6 @@
|
|
|
import type { Store } from 'pinia'
|
|
import type { Store } from 'pinia'
|
|
|
import type { AnyJson } from '~/types/enum/data'
|
|
import type { AnyJson } from '~/types/enum/data'
|
|
|
import type { ABILITIES, GENDER, TYPE_ALERT } from '~/types/enum/enums'
|
|
import type { ABILITIES, GENDER, TYPE_ALERT } from '~/types/enum/enums'
|
|
|
-import { type _ComputedRef, _Ref } from '@vue/reactivity'
|
|
|
|
|
import type { MenuGroup, MenuItem } from '~/types/layout'
|
|
import type { MenuGroup, MenuItem } from '~/types/layout'
|
|
|
|
|
|
|
|
declare module '@vuex-orm/core' {
|
|
declare module '@vuex-orm/core' {
|
|
@@ -17,7 +16,7 @@ interface AbilitiesType {
|
|
|
/** an array of fields to which user has (or not) access */
|
|
/** an array of fields to which user has (or not) access */
|
|
|
fields?: string[]
|
|
fields?: string[]
|
|
|
/** an object of conditions which restricts the rule scope */
|
|
/** an object of conditions which restricts the rule scope */
|
|
|
- conditions?: Record<string, unknown>
|
|
|
|
|
|
|
+ conditions?: unknown
|
|
|
/** indicates whether rule allows or forbids something */
|
|
/** indicates whether rule allows or forbids something */
|
|
|
inverted?: boolean
|
|
inverted?: boolean
|
|
|
/** message which explains why rule is forbidden */
|
|
/** message which explains why rule is forbidden */
|
|
@@ -29,7 +28,7 @@ interface Alert {
|
|
|
messages: Array<string>
|
|
messages: Array<string>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type AnyStore = Store<Record<string, unknown>>
|
|
|
|
|
|
|
+type AnyStore = Store<unknown>
|
|
|
|
|
|
|
|
interface EnumChoice {
|
|
interface EnumChoice {
|
|
|
value: string
|
|
value: string
|