@cordy/electro-generator 1.1.3 → 1.2.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -111,7 +111,7 @@ export {};
111
111
  type _SvcApi<T> = T extends { api(): infer R } ? NonNullable<R> : never;
112
112
  type _TaskPayload<T> = T extends { start(payload?: infer P): any } ? P : void;
113
113
  type _EventPayload<T> = T extends { payload(): infer P } ? P : unknown;
114
- type _WinApi<T> = T extends import("@cordy/electro").CreatedWindow<infer A> ? A : void;
114
+ type _WinApi<T> = T extends { __apiType?: infer A } ? NonNullable<A> : void;
115
115
  `;
116
116
  /**
117
117
  * Generate ViewMap entries for all defined views.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cordy/electro-generator",
3
- "version": "1.1.3",
3
+ "version": "1.2.1",
4
4
  "description": "Code generator for @cordy/electro — scans features and emits preload scripts and bridge types",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,14 +44,14 @@
44
44
  "prepublishOnly": "bun run build"
45
45
  },
46
46
  "peerDependencies": {
47
- "@cordy/electro": "1.1.2"
47
+ "@cordy/electro": "1.2.1"
48
48
  },
49
49
  "dependencies": {
50
50
  "oxc-parser": "^0.114.0",
51
51
  "tinyglobby": "^0.2.15"
52
52
  },
53
53
  "devDependencies": {
54
- "@cordy/electro": "1.1.3",
54
+ "@cordy/electro": "1.2.1",
55
55
  "tsdown": "^0.20.3",
56
56
  "vitest": "v4.1.0-beta.3"
57
57
  }