示例工程 06-dev-debug-logging
06-dev-debug-logging/app/.tsc/shared/ipc.js
/**
* 三端唯一来源:通道名与类型。
* 本文件不 import electron,渲染进程也能安全引用。
*/
export const CH = {
info: "debug:info",
log: "debug:log",
clear: "debug:clear",
devtools: "debug:devtools",
};
export function isLogLevel(value) {
return (value === "debug" ||
value === "info" ||
value === "warn" ||
value === "error");
}
//# sourceMappingURL=ipc.js.map