You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
500 B

import type RawIPC = require("node-ipc");
/**
* The IPC request structure
*/
export interface IIpcRequest {
id: number|null,
data ?: any
}
/**
* The IPC response structure
*/
export interface IIpcResponse {
data ?: any,
error?: string | Error
}
/**
* The IPC message handler type
*/
export type IpcMessageHandler = (...args: any[]) => Promise<any>
/**
* HOLY @#$@% WHOEVER MADE THE TYPES FOR `node-ipc` SHOULDB BE HANGED
*/
export type IPC = InstanceType<(typeof RawIPC)["IPC"]>;