UNPKG

tsrpc-protocol

Version:
17 lines (16 loc) 461 B
export default class TsrpcPtl<Req, Res> { req: Req; res: Res; readonly name: string; readonly filename: string; readonly conf: PtlConf; /** * * @param filename Protocol file path, always assign `__filename` to it. * @param conf Custom protocol config, processed them later by yourself. */ constructor(filename: string, conf?: PtlConf); } export declare type PtlConf = { [key: string]: any; };