mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Remove unused file
This commit is contained in:
38
apps/desktop/src/types/window.d.ts
vendored
38
apps/desktop/src/types/window.d.ts
vendored
@@ -1,38 +0,0 @@
|
||||
import { EventBus } from '@/lib/event-bus';
|
||||
import { MutationMap, MutationInput } from '@/operations/mutations';
|
||||
import { QueryMap, QueryInput } from '@/operations/queries';
|
||||
import { FileMetadata } from '@/types/files';
|
||||
|
||||
interface NeuronApi {
|
||||
init: () => Promise<void>;
|
||||
logout: (accountId: string) => Promise<void>;
|
||||
|
||||
executeMutation: <T extends MutationInput>(
|
||||
input: T,
|
||||
) => Promise<MutationMap[T['type']]['output']>;
|
||||
|
||||
executeQuery: <T extends QueryInput>(
|
||||
input: T,
|
||||
) => Promise<QueryMap[T['type']]['output']>;
|
||||
|
||||
executeQueryAndSubscribe: <T extends QueryInput>(
|
||||
id: string,
|
||||
input: T,
|
||||
) => Promise<QueryMap[T['type']]['output']>;
|
||||
|
||||
unsubscribeQuery: (id: string) => Promise<void>;
|
||||
|
||||
openFileDialog: (
|
||||
options: Electron.OpenDialogOptions,
|
||||
) => Promise<Electron.OpenDialogReturnValue>;
|
||||
|
||||
openFile: (userId: string, id: string, extension: string) => Promise<void>;
|
||||
getFileMetadata: (path: string) => Promise<FileMetadata | null>;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
neuron: NeuronApi;
|
||||
eventBus: EventBus;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user