@overlayed/app 0.8.4 → 0.9.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.ts +29 -3
- package/dist/index.js +612 -528
- package/dist/preload.d.ts +1 -0
- package/dist/preload.js +4 -0
- package/package.json +7 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="electron" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
|
|
4
|
+
import { BrowserWindow } from 'electron';
|
|
5
|
+
import { electron } from 'electron';
|
|
4
6
|
import { Module } from 'arktype';
|
|
5
7
|
import { ObjectType } from 'arktype/internal/methods/object.ts';
|
|
6
8
|
import { Out } from 'arktype/internal/attributes.ts';
|
|
@@ -201,6 +203,7 @@ export declare type OverlayedApp<TModule extends GameModule, TKeybind extends st
|
|
|
201
203
|
keybinds: OverlayedAppKeybindModule<TKeybind>;
|
|
202
204
|
windows: OverlayedAppWindowsModule;
|
|
203
205
|
input: OverlayedAppInputModule;
|
|
206
|
+
ads: OverlayedAppAdsModule;
|
|
204
207
|
/**
|
|
205
208
|
* Returns true if any monitored processes are running.
|
|
206
209
|
*
|
|
@@ -224,6 +227,10 @@ export declare type OverlayedApp<TModule extends GameModule, TKeybind extends st
|
|
|
224
227
|
initialized: boolean;
|
|
225
228
|
};
|
|
226
229
|
|
|
230
|
+
declare interface OverlayedAppAdsModule {
|
|
231
|
+
registerWindow(window: BrowserWindow, electron: electron): void;
|
|
232
|
+
}
|
|
233
|
+
|
|
227
234
|
declare type OverlayedAppGameModules<TModule extends GameModule> = {
|
|
228
235
|
[TKey in TModule["key"]]: {
|
|
229
236
|
onAny<TEvent extends Extract<TModule, {
|
|
@@ -361,11 +368,22 @@ declare interface OverlayedAppWindowsModule extends Pick<RenderInterface, "on" |
|
|
|
361
368
|
|
|
362
369
|
declare interface OverlayedOptions<TModule extends GameModule, TKeybind extends string> {
|
|
363
370
|
/**
|
|
364
|
-
* The
|
|
371
|
+
* The electron instance.
|
|
365
372
|
*
|
|
366
|
-
*
|
|
373
|
+
* Must be imported globally like:
|
|
374
|
+
* ```ts
|
|
375
|
+
* import { electron } from "electron";
|
|
376
|
+
* ```
|
|
377
|
+
* or
|
|
378
|
+
* ```ts
|
|
379
|
+
* const electron = require("electron");
|
|
380
|
+
* ```
|
|
367
381
|
*/
|
|
368
|
-
|
|
382
|
+
electron: electron;
|
|
383
|
+
/**
|
|
384
|
+
* The application id, this can be found in the [Overlayed Dashboard](https://dashboard.overlayed.gg/settings/applications).
|
|
385
|
+
*/
|
|
386
|
+
applicationId: string;
|
|
369
387
|
/**
|
|
370
388
|
* App modules to load.
|
|
371
389
|
*/
|
|
@@ -390,6 +408,14 @@ declare interface OverlayedOptions<TModule extends GameModule, TKeybind extends
|
|
|
390
408
|
* @deprecated
|
|
391
409
|
*/
|
|
392
410
|
channel?: string;
|
|
411
|
+
/**
|
|
412
|
+
* The app name.
|
|
413
|
+
*
|
|
414
|
+
* TODO: replace with endpoint to get app name from server.
|
|
415
|
+
*
|
|
416
|
+
* @deprecated This field will be removed in the future.
|
|
417
|
+
*/
|
|
418
|
+
appName: string;
|
|
393
419
|
}
|
|
394
420
|
|
|
395
421
|
declare class OverridesManager extends Manager {
|