@overwolf/ow-electron-packages-types 1.1.6-beta.2 → 1.1.6-beta.3
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/package.json +1 -1
- package/types.d.ts +35 -18
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -70,9 +70,9 @@ interface IOverwolfUtilityApi {
|
|
|
70
70
|
* Allows injection into high elevation games.
|
|
71
71
|
* No-ops if files are already present.
|
|
72
72
|
*
|
|
73
|
-
* @throws
|
|
74
|
-
* @throws
|
|
75
|
-
* @throws
|
|
73
|
+
* @throws `HelperInstallError` `exitCode 1223` — user cancelled the UAC prompt (ERROR_CANCELLED)
|
|
74
|
+
* @throws `HelperInstallError` `err.exitCode !== 1223` — the installer process failed. Log `err.exitCode` and investigate.
|
|
75
|
+
* @throws `HelperInstallError` any other non-zero exitCode — installation failed.
|
|
76
76
|
*
|
|
77
77
|
* @remarks
|
|
78
78
|
* The helper binaries are installed to:
|
|
@@ -1782,7 +1782,8 @@ type VideoRecordingSplitType =
|
|
|
1782
1782
|
*
|
|
1783
1783
|
* This interface serves as a blueprint for all audio filters within the system,
|
|
1784
1784
|
* ensuring they have a unique identifier and a flexible container for settings.
|
|
1785
|
-
*
|
|
1785
|
+
*
|
|
1786
|
+
* @example
|
|
1786
1787
|
* ```typescript
|
|
1787
1788
|
* const lowPass: AudioFilterBase = {
|
|
1788
1789
|
* id: 'low-pass-001',
|
|
@@ -1808,7 +1809,8 @@ export interface AudioFilterBase {
|
|
|
1808
1809
|
|
|
1809
1810
|
/**
|
|
1810
1811
|
* A specialized filter for dynamic range compression.
|
|
1811
|
-
*
|
|
1812
|
+
*
|
|
1813
|
+
* @example
|
|
1812
1814
|
* ```typescript
|
|
1813
1815
|
* const vocalComp: AudioCompressorFilter = {
|
|
1814
1816
|
* id: 'compressor_filter',
|
|
@@ -1863,7 +1865,8 @@ export interface AudioCompressorFilter extends AudioFilterBase {
|
|
|
1863
1865
|
|
|
1864
1866
|
/**
|
|
1865
1867
|
* A specialized filter for dynamic range expansion or noise gating.
|
|
1866
|
-
*
|
|
1868
|
+
*
|
|
1869
|
+
* @example
|
|
1867
1870
|
* ```typescript
|
|
1868
1871
|
* const noiseGate: AudioExpanderFilter = {
|
|
1869
1872
|
* id: 'expander_filter',
|
|
@@ -1932,7 +1935,8 @@ export interface AudioExpanderFilter extends AudioFilterBase {
|
|
|
1932
1935
|
|
|
1933
1936
|
/**
|
|
1934
1937
|
* A simple filter used to adjust the volume or amplitude of an audio signal.
|
|
1935
|
-
*
|
|
1938
|
+
*
|
|
1939
|
+
* @example
|
|
1936
1940
|
* ```typescript
|
|
1937
1941
|
* const boost: AudioGainFilter = {
|
|
1938
1942
|
* id: 'gain_filter',
|
|
@@ -1963,7 +1967,8 @@ export interface AudioGainFilter extends AudioFilterBase {
|
|
|
1963
1967
|
|
|
1964
1968
|
/**
|
|
1965
1969
|
* A utility filter that flips the phase of the audio signal by 180 degrees.
|
|
1966
|
-
*
|
|
1970
|
+
*
|
|
1971
|
+
* @example
|
|
1967
1972
|
* ```typescript
|
|
1968
1973
|
* const phaseFlip: AudioInvertPolarityFilter = {
|
|
1969
1974
|
* id: 'invert_polarity_filter',
|
|
@@ -1985,7 +1990,8 @@ export interface AudioInvertPolarityFilter extends AudioFilterBase {
|
|
|
1985
1990
|
|
|
1986
1991
|
/**
|
|
1987
1992
|
* A specialized dynamics processor used to prevent an audio signal from exceeding a specific decibel level.
|
|
1988
|
-
*
|
|
1993
|
+
*
|
|
1994
|
+
* @example
|
|
1989
1995
|
* ```typescript
|
|
1990
1996
|
* const masterLimiter: AudioLimiterFilter = {
|
|
1991
1997
|
* id: 'limiter_filter',
|
|
@@ -2025,7 +2031,8 @@ export interface AudioLimiterFilter extends AudioFilterBase {
|
|
|
2025
2031
|
/**
|
|
2026
2032
|
* A noise gate filter used to attenuate signals that fall below a certain threshold.
|
|
2027
2033
|
* It is primarily used to remove background noise during silent passages.
|
|
2028
|
-
*
|
|
2034
|
+
*
|
|
2035
|
+
* @example
|
|
2029
2036
|
* ```typescript
|
|
2030
2037
|
* const gate: AudioNoiseGateFilter = {
|
|
2031
2038
|
* id: 'noise_gate_filter',
|
|
@@ -2083,7 +2090,8 @@ export interface AudioNoiseGateFilter extends AudioFilterBase {
|
|
|
2083
2090
|
|
|
2084
2091
|
/**
|
|
2085
2092
|
* An advanced noise suppression filter utilizing machine learning or digital signal processing algorithms.
|
|
2086
|
-
*
|
|
2093
|
+
*
|
|
2094
|
+
* @example
|
|
2087
2095
|
* ```typescript
|
|
2088
2096
|
* const aiDenoise: AudioNoiseSuppressFilterV2 = {
|
|
2089
2097
|
* id: 'noise_suppress_filter_v2',
|
|
@@ -5006,7 +5014,7 @@ type ZOrderType = "default" | "topMost" | "bottomMost";
|
|
|
5006
5014
|
*
|
|
5007
5015
|
* @see {@link IOverwolfOverlayApi.setGpuPreference}.
|
|
5008
5016
|
*
|
|
5009
|
-
* @since 2.
|
|
5017
|
+
* @since 2.0.5
|
|
5010
5018
|
*/
|
|
5011
5019
|
type GpuPreference = "default" | "highPerformance";
|
|
5012
5020
|
|
|
@@ -5026,7 +5034,7 @@ type GpuPreference = "default" | "highPerformance";
|
|
|
5026
5034
|
*
|
|
5027
5035
|
* @see {@link IOverwolfOverlayApi.on} `shared-texture-unavailable`.
|
|
5028
5036
|
*
|
|
5029
|
-
* @since 2.
|
|
5037
|
+
* @since 2.0.5
|
|
5030
5038
|
*/
|
|
5031
5039
|
type SharedTextureUnavailableReason =
|
|
5032
5040
|
| "unsupportedGraphicsApi"
|
|
@@ -5120,6 +5128,8 @@ interface OverlayWindowOptions
|
|
|
5120
5128
|
*
|
|
5121
5129
|
* @default false
|
|
5122
5130
|
*
|
|
5131
|
+
* @see {@link https://www.electronjs.org/docs/latest/tutorial/offscreen-rendering#software-output-device | Software output device}
|
|
5132
|
+
*
|
|
5123
5133
|
* @since 1.13.20
|
|
5124
5134
|
*/
|
|
5125
5135
|
disableHardwareAcceleration?: boolean;
|
|
@@ -5148,6 +5158,8 @@ interface OverlayWindowOptions
|
|
|
5148
5158
|
*
|
|
5149
5159
|
* @default false
|
|
5150
5160
|
*
|
|
5161
|
+
* @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
|
|
5162
|
+
*
|
|
5151
5163
|
* @since 2.0.2
|
|
5152
5164
|
*/
|
|
5153
5165
|
useSharedTexture?: boolean;
|
|
@@ -5532,7 +5544,9 @@ interface GameWindowInfo {
|
|
|
5532
5544
|
*
|
|
5533
5545
|
* `undefined` until the game is injected and its graphics API is detected.
|
|
5534
5546
|
*
|
|
5535
|
-
* @
|
|
5547
|
+
* @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
|
|
5548
|
+
*
|
|
5549
|
+
* @since 2.0.5
|
|
5536
5550
|
*/
|
|
5537
5551
|
readonly isSharedTextureAvailable?: boolean;
|
|
5538
5552
|
}
|
|
@@ -5875,7 +5889,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
5875
5889
|
* Allows injection into high elevation games.
|
|
5876
5890
|
* No-ops if files are already present.
|
|
5877
5891
|
*
|
|
5878
|
-
* @throws
|
|
5892
|
+
* @throws `HelperInstallError`
|
|
5879
5893
|
* - `exitCode 1223` — user cancelled the UAC prompt (ERROR_CANCELLED)
|
|
5880
5894
|
* - `err.exitCode !== 1223` — the installer process failed. Log `err.exitCode` and investigate.
|
|
5881
5895
|
* - any other non-zero exitCode — installation failed.
|
|
@@ -6023,6 +6037,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6023
6037
|
* @returns A promise that resolves once the preference has been recorded.
|
|
6024
6038
|
* @throws If the registry cannot be written, or on a non-Windows platform.
|
|
6025
6039
|
* @see {@link GpuPreference}.
|
|
6040
|
+
* @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
|
|
6026
6041
|
*
|
|
6027
6042
|
* @example
|
|
6028
6043
|
* ```ts
|
|
@@ -6034,7 +6049,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6034
6049
|
* });
|
|
6035
6050
|
* ```
|
|
6036
6051
|
*
|
|
6037
|
-
* @since 2.
|
|
6052
|
+
* @since 2.0.5
|
|
6038
6053
|
*/
|
|
6039
6054
|
setGpuPreference(preference: GpuPreference): Promise<void>;
|
|
6040
6055
|
|
|
@@ -6049,7 +6064,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6049
6064
|
* @see {@link IOverwolfOverlayApi.setGpuPreference}.
|
|
6050
6065
|
* @see {@link GpuPreference}.
|
|
6051
6066
|
*
|
|
6052
|
-
* @since 2.
|
|
6067
|
+
* @since 2.0.5
|
|
6053
6068
|
*/
|
|
6054
6069
|
getGpuPreference(): Promise<GpuPreference>;
|
|
6055
6070
|
|
|
@@ -6200,6 +6215,8 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6200
6215
|
* @param eventName - `shared-texture-unavailable`
|
|
6201
6216
|
* @param listener - Callback invoked once for the current game with the reason.
|
|
6202
6217
|
*
|
|
6218
|
+
* @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
|
|
6219
|
+
*
|
|
6203
6220
|
* @example
|
|
6204
6221
|
* ```ts
|
|
6205
6222
|
* overlay.on('shared-texture-unavailable', async (reason) => {
|
|
@@ -6210,7 +6227,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6210
6227
|
* });
|
|
6211
6228
|
* ```
|
|
6212
6229
|
*
|
|
6213
|
-
* @since 2.
|
|
6230
|
+
* @since 2.0.5
|
|
6214
6231
|
*/
|
|
6215
6232
|
on(
|
|
6216
6233
|
eventName: 'shared-texture-unavailable',
|