eslint cleanup
This commit is contained in:
parent
922383e232
commit
c419d15907
37 changed files with 42 additions and 47 deletions
|
@ -11,7 +11,7 @@ export interface PanelPermissions {
|
|||
export interface GloablPermissionsStore {
|
||||
data: PanelPermissions;
|
||||
setPermissions: Action<GloablPermissionsStore, PanelPermissions>;
|
||||
getPermissions: Thunk<GloablPermissionsStore, void, {}, any, Promise<void>>;
|
||||
getPermissions: Thunk<GloablPermissionsStore, void, Record<string, unknown>, any, Promise<void>>;
|
||||
}
|
||||
|
||||
const permissions: GloablPermissionsStore = {
|
||||
|
|
|
@ -6,7 +6,7 @@ import { cleanDirectoryPath } from '@/helpers';
|
|||
export interface ServerFileStore {
|
||||
directory: string;
|
||||
contents: FileObject[];
|
||||
getDirectoryContents: Thunk<ServerFileStore, string, {}, ServerStore, Promise<void>>;
|
||||
getDirectoryContents: Thunk<ServerFileStore, string, Record<string, unknown>, ServerStore, Promise<void>>;
|
||||
setContents: Action<ServerFileStore, FileObject[]>;
|
||||
pushFile: Action<ServerFileStore, FileObject>;
|
||||
removeFile: Action<ServerFileStore, string>;
|
||||
|
|
|
@ -14,7 +14,7 @@ interface ServerDataStore {
|
|||
data?: Server;
|
||||
permissions: string[];
|
||||
|
||||
getServer: Thunk<ServerDataStore, string, {}, ServerStore, Promise<void>>;
|
||||
getServer: Thunk<ServerDataStore, string, Record<string, unknown>, ServerStore, Promise<void>>;
|
||||
setServer: Action<ServerDataStore, Server>;
|
||||
setPermissions: Action<ServerDataStore, string[]>;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ export interface UserStore {
|
|||
data?: UserData;
|
||||
setUserData: Action<UserStore, UserData>;
|
||||
updateUserData: Action<UserStore, Partial<UserData>>;
|
||||
updateUserEmail: Thunk<UserStore, { email: string; password: string }, any, {}, Promise<void>>;
|
||||
updateUserEmail: Thunk<UserStore, { email: string; password: string }, any, UserStore, Promise<void>>;
|
||||
}
|
||||
|
||||
const user: UserStore = {
|
||||
|
|
Reference in a new issue