示例工程 11-main-process-services

11-main-process-services/app/.tsc/preload/index.d.ts

typescript · 0.6 KB

import { type Envelope, type NoteMeta, type NoteRead, type PickedFile } from "../shared/ipc";
declare const api: {
    listNotes: () => Promise<Envelope<NoteMeta[]>>;
    readNote: (id: string) => Promise<Envelope<NoteRead>>;
    writeNote: (id: string, content: string) => Promise<Envelope<NoteMeta>>;
    removeNote: (id: string) => Promise<Envelope<null>>;
    resetNotes: () => Promise<Envelope<null>>;
    openUrl: (url: string) => Promise<Envelope<{
        url: string;
        dryRun: boolean;
    }>>;
    pickFile: () => Promise<Envelope<PickedFile | null>>;
};
export type Api = typeof api;
export {};
//# sourceMappingURL=index.d.ts.map