electron-reactive-event-cli 1.0.109 → 1.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateIpcMainModule.d.ts","sourceRoot":"","sources":["../Source/GenerateIpcMainModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenerateIpcMainModule.d.ts","sourceRoot":"","sources":["../Source/GenerateIpcMainModule.ts"],"names":[],"mappings":"AAiCA,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAc3D;AAED,wBAAsB,4BAA4B,IAAI,OAAO,CAAC,IAAI,CAAC,CAIlE"}
|
|
@@ -18,29 +18,9 @@ function Inner(Config, ModulePath) {
|
|
|
18
18
|
const Header = (0, Command_1.GetHeader)(ModulePath, "declare-events");
|
|
19
19
|
const ImportPath = (0, DeclareEvents_1.GetRelativeImportPath)(Config.ScopedModulePath, ModulePath);
|
|
20
20
|
const Contents = Header + `import type { PackageKey } from "${ImportPath}";
|
|
21
|
-
import { getReactiveIpcFunctions } from "electron-reactive-event/scoped";
|
|
21
|
+
import { type IpcMainReactive, getReactiveIpcFunctions } from "electron-reactive-event/scoped";
|
|
22
22
|
|
|
23
|
-
const
|
|
24
|
-
addListener: AddListener,
|
|
25
|
-
handle: Handle,
|
|
26
|
-
handleOnce: HandleOnce,
|
|
27
|
-
off: Off,
|
|
28
|
-
on: On,
|
|
29
|
-
once: Once,
|
|
30
|
-
removeAllListeners: RemoveAllListeners,
|
|
31
|
-
removeHandler: RemoveHandler,
|
|
32
|
-
removeListener: RemoveListener
|
|
33
|
-
} = getReactiveIpcFunctions<PackageKey>();
|
|
34
|
-
|
|
35
|
-
export const addListener: typeof AddListener = AddListener;
|
|
36
|
-
export const handle: typeof Handle = Handle;
|
|
37
|
-
export const handleOnce: typeof HandleOnce = HandleOnce;
|
|
38
|
-
export const off: typeof Off = Off;
|
|
39
|
-
export const on: typeof On = On;
|
|
40
|
-
export const once: typeof Once = Once;
|
|
41
|
-
export const removeAllListeners: typeof RemoveAllListeners = RemoveAllListeners;
|
|
42
|
-
export const removeHandler: typeof RemoveHandler = RemoveHandler;
|
|
43
|
-
export const removeListener: typeof RemoveListener = RemoveListener;
|
|
23
|
+
export const ipcMain: IpcMainReactive<PackageKey> = getReactiveIpcMain<PackageKey>();
|
|
44
24
|
`;
|
|
45
25
|
await (0, promises_1.writeFile)(ModulePath, Contents, { encoding: "utf-8" });
|
|
46
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateIpcMainModule.js","sourceRoot":"","sources":["../Source/GenerateIpcMainModule.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;
|
|
1
|
+
{"version":3,"file":"GenerateIpcMainModule.js","sourceRoot":"","sources":["../Source/GenerateIpcMainModule.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AA6BH,sDAcC;AAED,oEAIC;AA/CD,wCAAwC;AAExC,uCAAuD;AAEvD,qCAAyC;AACzC,2EAAyD;AACzD,mDAAwD;AACxD,0CAAwC;AAExC,SAAS,KAAK,CACV,MAAiB,EACjB,UAAkB;IAGlB,OAAO,KAAK;QAER,MAAM,MAAM,GAAW,IAAA,mBAAS,EAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QAC/D,MAAM,UAAU,GAAW,IAAA,qCAAqB,EAAC,MAAM,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;QACtF,MAAM,QAAQ,GAAW,MAAM,GAAG,oCAAqC,UAAW;;;;CAIzF,CAAC;QACM,MAAM,IAAA,oBAAS,EAAC,UAAU,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC,CAAC;AACN,CAAC;AAEM,KAAK,UAAU,qBAAqB;IAEvC,MAAM,MAAM,GAAc,MAAM,IAAA,sBAAa,GAAE,CAAC;IAChD,MAAM,UAAU,GAAW,MAAM,IAAA,aAAG,EAChC,6DAA6D,EAC7D,gEAAgE,EAChE,IAAA,sCAAU,EAAC,MAAM,EAAE,MAAM,CAAC,CAC7B,CAAC;IAEF,MAAM,IAAA,aAAG,EACL,qBAAqB,EACrB,mCAAoC,UAAW,GAAG,EAClD,KAAK,CAAC,MAAM,EAAE,UAAU,CAAC,CAC5B,CAAC;AACN,CAAC;AAEM,KAAK,UAAU,4BAA4B;IAE9C,IAAA,oBAAU,EAAC,mBAAmB,CAAC,CAAC;IAChC,MAAM,qBAAqB,EAAE,CAAC;AAClC,CAAC"}
|