|
@@ -1,7 +1,7 @@
|
|
|
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 _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 +17,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?: any
|
|
|
|
|
|
|
+ conditions?: Record<string, 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 +29,7 @@ interface Alert {
|
|
|
messages: Array<string>
|
|
messages: Array<string>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type AnyStore = Store<any>
|
|
|
|
|
|
|
+type AnyStore = Store<Record<string, unknown>>
|
|
|
|
|
|
|
|
interface EnumChoice {
|
|
interface EnumChoice {
|
|
|
value: string
|
|
value: string
|
|
@@ -44,17 +44,17 @@ interface Filter {
|
|
|
type EnumChoices = Array<EnumChoice>
|
|
type EnumChoices = Array<EnumChoice>
|
|
|
|
|
|
|
|
interface HookProvider {
|
|
interface HookProvider {
|
|
|
- invoke(args: DataProviderArgs): Promise<any>
|
|
|
|
|
|
|
+ invoke(args: DataProviderArgs): Promise<unknown>
|
|
|
}
|
|
}
|
|
|
interface HookPersister {
|
|
interface HookPersister {
|
|
|
- invoke(args: DataPersisterArgs): Promise<any>
|
|
|
|
|
|
|
+ invoke(args: DataPersisterArgs): Promise<unknown>
|
|
|
}
|
|
}
|
|
|
interface HookDeleter {
|
|
interface HookDeleter {
|
|
|
- invoke(args: DataDeleterArgs): Promise<any>
|
|
|
|
|
|
|
+ invoke(args: DataDeleterArgs): Promise<unknown>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
interface Processor {
|
|
interface Processor {
|
|
|
- process(data: AnyJson): Promise<any>
|
|
|
|
|
|
|
+ process(data: AnyJson): Promise<unknown>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
interface Encoder {
|
|
interface Encoder {
|
|
@@ -188,7 +188,7 @@ interface MobytUserStatus {
|
|
|
interface MercureEntityUpdate {
|
|
interface MercureEntityUpdate {
|
|
|
iri: string
|
|
iri: string
|
|
|
operation: 'create' | 'delete' | 'update'
|
|
operation: 'create' | 'delete' | 'update'
|
|
|
- data: any
|
|
|
|
|
|
|
+ data: unknown
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
interface SseState {
|
|
interface SseState {
|