UNPKG

@sinotron/cli

Version:

Simple framework for Typescript Electron projects

12 lines (11 loc) 324 B
export {}; // import { IpcAPI } from '../../_scratch/api.js'; // // // ApiRegistry.register(new IpcApi('sample')); // // // Define interface for each api // interface DemoApiContract { // getOne: (id: string) => Promise<any>; // getMany: (ids: string[]) => Promise<any[]>; // submit: (data: any) => Promise<any>; // }