@@ -800,7 +800,7 @@ declare module "socket:ipc" {
800
800
*/
801
801
export function debug(enable?: (boolean)): boolean;
802
802
export namespace debug {
803
- let enabled: any ;
803
+ let enabled: boolean ;
804
804
function log(...args: any[]): any;
805
805
}
806
806
/**
@@ -1038,11 +1038,11 @@ declare module "socket:ipc" {
1038
1038
/**
1039
1039
* Get a parameter value by `key`.
1040
1040
* @param {string} key
1041
- * @param {any} defaultValue
1041
+ * @param {any=} [ defaultValue]
1042
1042
* @return {any}
1043
1043
* @ignore
1044
1044
*/
1045
- get(key: string, defaultValue: any): any;
1045
+ get(key: string, defaultValue? : any | undefined ): any;
1046
1046
/**
1047
1047
* Delete a parameter by `key`.
1048
1048
* @param {string} key
@@ -1160,7 +1160,7 @@ declare module "socket:ipc" {
1160
1160
[Symbol.iterator](): Generator<any, void, unknown>;
1161
1161
}
1162
1162
export class IPCSearchParams extends URLSearchParams {
1163
- constructor(params: any, nonce: any);
1163
+ constructor(params: any, nonce? : any);
1164
1164
}
1165
1165
/**
1166
1166
* @ignore
@@ -1177,16 +1177,18 @@ declare module "socket:ipc" {
1177
1177
get onmessage(): any;
1178
1178
set onmessageerror(onmessageerror: any);
1179
1179
get onmessageerror(): any;
1180
+ close(purge?: boolean): void;
1180
1181
postMessage(message: any, optionsOrTransferList: any): void;
1181
1182
addEventListener(...args: any[]): any;
1182
1183
removeEventListener(...args: any[]): any;
1183
1184
dispatchEvent(event: any): any;
1184
1185
}
1185
1186
export class IPCMessageChannel extends MessageChannel {
1186
1187
constructor(options?: any);
1187
- port1: any;
1188
- port2: any;
1189
1188
get id(): any;
1189
+ get port1(): any;
1190
+ get port2(): any;
1191
+ get channel(): any;
1190
1192
#private;
1191
1193
}
1192
1194
export default exports;
@@ -8298,20 +8300,20 @@ declare module "socket:vm" {
8298
8300
* garbage collected or there are no longer any references to it and its
8299
8301
* associated `Script` instance.
8300
8302
* @param {string|object|function} source
8301
- * @param {ScriptOptions=} [options]
8302
8303
* @param {object=} [context]
8304
+ * @param {ScriptOptions=} [options]
8303
8305
* @return {Promise<any>}
8304
8306
*/
8305
- export function runInContext(source: string | object | Function, options ?: ScriptOptions | undefined, context ?: object | undefined): Promise<any>;
8307
+ export function runInContext(source: string | object | Function, context ?: object | undefined, options ?: ScriptOptions | undefined): Promise<any>;
8306
8308
/**
8307
8309
* Run `source` JavaScript in new context. The script context is destroyed after
8308
8310
* execution. This is typically a "one off" isolated run.
8309
8311
* @param {string} source
8310
- * @param {ScriptOptions=} [options]
8311
8312
* @param {object=} [context]
8313
+ * @param {ScriptOptions=} [options]
8312
8314
* @return {Promise<any>}
8313
8315
*/
8314
- export function runInNewContext(source: string, options ?: ScriptOptions | undefined, context ?: object | undefined): Promise<any>;
8316
+ export function runInNewContext(source: string, context ?: object | undefined, options ?: ScriptOptions | undefined): Promise<any>;
8315
8317
/**
8316
8318
* Run `source` JavaScript in this current context (`globalThis`).
8317
8319
* @param {string} source
@@ -17664,6 +17666,7 @@ declare module "socket:shared-worker/worker" {
17664
17666
export namespace module {
17665
17667
let exports: {};
17666
17668
}
17669
+ export const connections: Set<any>;
17667
17670
}
17668
17671
17669
17672
declare module "socket:test/harness" {
0 commit comments