From 18ddc1bd3f470f7f6476ad4952eb05dc855d0ec6 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Fri, 6 Dec 2019 00:25:29 +0000 Subject: [PATCH] type some of ExecutionContextDelegate --- src/chromium/ExecutionContext.ts | 2 +- src/firefox/ExecutionContext.ts | 2 +- src/javascript.ts | 2 +- src/webkit/ExecutionContext.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chromium/ExecutionContext.ts b/src/chromium/ExecutionContext.ts index 89d69a952d..12a4443a48 100644 --- a/src/chromium/ExecutionContext.ts +++ b/src/chromium/ExecutionContext.ts @@ -149,7 +149,7 @@ export class ExecutionContextDelegate implements js.ExecutionContextDelegate { await releaseObject(this._client, toRemoteObject(handle)); } - async handleJSONValue(handle: js.JSHandle): Promise { + async handleJSONValue(handle: js.JSHandle): Promise { const remoteObject = toRemoteObject(handle); if (remoteObject.objectId) { const response = await this._client.send('Runtime.callFunctionOn', { diff --git a/src/firefox/ExecutionContext.ts b/src/firefox/ExecutionContext.ts index 19ed5058db..cdb61b750e 100644 --- a/src/firefox/ExecutionContext.ts +++ b/src/firefox/ExecutionContext.ts @@ -134,7 +134,7 @@ export class ExecutionContextDelegate implements js.ExecutionContextDelegate { }); } - async handleJSONValue(handle: js.JSHandle): Promise { + async handleJSONValue(handle: js.JSHandle): Promise { const payload = handle._remoteObject; if (!payload.objectId) return deserializeValue(payload); diff --git a/src/javascript.ts b/src/javascript.ts index a94cc5e58e..fe5eb5c3eb 100644 --- a/src/javascript.ts +++ b/src/javascript.ts @@ -10,7 +10,7 @@ export interface ExecutionContextDelegate { getProperties(handle: JSHandle): Promise>; releaseHandle(handle: JSHandle): Promise; handleToString(handle: JSHandle, includeType: boolean): string; - handleJSONValue(handle: JSHandle): Promise; + handleJSONValue(handle: JSHandle): Promise; } export class ExecutionContext { diff --git a/src/webkit/ExecutionContext.ts b/src/webkit/ExecutionContext.ts index 7b26f69d0d..d3b34a547f 100644 --- a/src/webkit/ExecutionContext.ts +++ b/src/webkit/ExecutionContext.ts @@ -289,7 +289,7 @@ export class ExecutionContextDelegate implements js.ExecutionContextDelegate { await releaseObject(this._session, toRemoteObject(handle)); } - async handleJSONValue(handle: js.JSHandle): Promise { + async handleJSONValue(handle: js.JSHandle): Promise { const remoteObject = toRemoteObject(handle); if (remoteObject.objectId) { const response = await this._session.send('Runtime.callFunctionOn', {