Remove ProtocolProxyApiWorkaround

The upstream issue has been fixed in TypeScript 4 and therefore this workaround
is no longer necessary.

R=sigurds@chromium.org

Change-Id: I4a831566f3a7f7756f8938668c38e5fabe2ca14c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2367947
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
This commit is contained in:
Tim van der Lippe
2020-08-21 14:10:19 +00:00
committed by Commit Bot
parent fb0234623d
commit 662c01bba2
11 changed files with 8 additions and 65 deletions
@@ -280,10 +280,6 @@ def generate_protocol_externs(output_path, file1, file2):
output_file.write("/** @interface */\n")
output_file.write("ProtocolProxyApi.%sDispatcher = function() {};\n" %
domain_name)
# Include the workaround for https://github.com/microsoft/TypeScript/issues/38640
output_file.write(
"var ProtocolProxyApiWorkaround_%sDispatcher = ProtocolProxyApi.%sDispatcher;\n"
% (domain_name, domain_name))
if "events" in domain:
for event in domain["events"]:
params = []
@@ -402,12 +402,6 @@ const emitApi = (moduleName: string, protocolModuleName: string, domains: Protoc
domains.forEach(d => emitDomainApi(d, protocolModulePrefix));
emitCloseBlock();
emitLine();
emitLine('// Include the workaround for https://github.com/microsoft/TypeScript/issues/38640');
domains.forEach(d => {
emitLine(
`interface ProtocolProxyApiWorkaround_${d.domain}Dispatcher extends ProtocolProxyApi.${d.domain}Dispatcher {}`);
});
};
const flushEmitToFile = (path: string) => {