示例工程 09-typed-ipc-contracts
09-typed-ipc-contracts/app/.tsc/preload/index.d.ts
import { type CaseReport, type CreateNoteReq, type Envelope, type ListNotesReq, type ListNotesRes, type Note } from "../shared/ipc";
declare const api: {
createNote: (req: CreateNoteReq) => Promise<Envelope<Note>>;
createNoteRaw: (value: unknown) => Promise<Envelope<Note>>;
listNotes: (req: ListNotesReq) => Promise<Envelope<ListNotesRes>>;
runCases: () => Promise<Envelope<CaseReport>>;
resetNotes: () => Promise<Envelope<{
cleared: boolean;
}>>;
};
export type Api = typeof api;
export {};
//# sourceMappingURL=index.d.ts.map