UNPKG

sinotron

Version:

Simple framework for Typescript Electron projects

19 lines (17 loc) 456 B
import { Dirs } from '../../../constants.js'; import { FileRep } from '@utilis/fs'; /** * @deprecated */ export class ChannelRegisterFile { static create() { const fileOb = new FileRep({ dir: Dirs.ipc(), filename: 'Channel.Register.ts' }); fileOb.write(` import { ChannelId } from '../interface.ts' // Use to register channel handlers in main.ts export class ChannelRegister {}`.trimStart()); } }