@cordy/electro 1.1.1 → 1.1.2

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.d.mts +4 -4
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseWindow, WebContentsView } from "electron";
1
+ import { BaseWindow, BaseWindowConstructorOptions, WebContentsView, WebPreferences } from "electron";
2
2
  import { UserConfig } from "vite";
3
3
 
4
4
  //#region src/config/types.d.ts
@@ -139,12 +139,12 @@ interface RendererViewConfig {
139
139
  id: ViewId;
140
140
  /** Link to a defineView() name. `true` = use `id` as the renderer name. */
141
141
  renderer: true | string;
142
- webPreferences?: Record<string, unknown>;
142
+ webPreferences?: WebPreferences;
143
143
  }
144
144
  /** Config for dynamic views (no renderer entry, programmatic). */
145
145
  interface DynamicViewConfig {
146
146
  id: ViewId;
147
- webPreferences?: Record<string, unknown>;
147
+ webPreferences?: WebPreferences;
148
148
  }
149
149
  type ViewConfig = RendererViewConfig | DynamicViewConfig;
150
150
  /** A WebContentsView augmented with `load()` for renderer-linked views. */
@@ -187,7 +187,7 @@ declare class ViewManager {
187
187
  type WindowId = string;
188
188
  interface WindowConfig<TApi = void> {
189
189
  id: WindowId;
190
- options?: Record<string, unknown>;
190
+ options?: BaseWindowConstructorOptions;
191
191
  api?: (window: BaseWindow) => TApi;
192
192
  }
193
193
  /** Public interface — hides the Window class. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cordy/electro",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Electron framework — feature-first runtime, codegen, and Vite-based build system",
5
5
  "license": "MIT",
6
6
  "type": "module",