@cordy/electro 1.1.0 → 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.
- package/dist/index.d.mts +4 -4
- 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?:
|
|
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?:
|
|
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?:
|
|
190
|
+
options?: BaseWindowConstructorOptions;
|
|
191
191
|
api?: (window: BaseWindow) => TApi;
|
|
192
192
|
}
|
|
193
193
|
/** Public interface — hides the Window class. */
|