@proton-app/preload 0.0.4 → 0.0.5

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.ts +6 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,7 +1,12 @@
1
- import { type IpcSchema } from "./ipc";
1
+ import { type IpcSchema, type IpcApi } from "./ipc";
2
2
  type SetupOptions<T extends Record<string, IpcSchema>> = {
3
3
  ipc: T;
4
4
  env: readonly string[];
5
5
  };
6
6
  export declare function setupPreload<T extends Record<string, IpcSchema>, const K extends readonly string[]>({ ipc, env }: SetupOptions<T>): void;
7
+ export type PreloadWindow<T extends Record<string, IpcSchema>, K extends readonly string[]> = IpcApi<T> & {
8
+ env: {
9
+ [P in K[number]]: string | undefined;
10
+ };
11
+ };
7
12
  export * from "./ipc";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "@proton-app/preload",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "description": "",
6
6
  "keywords": [],
7
7
  "author": "",