From: Gentoo Overlay <gentoo@localhost>
Subject: [PATCH] Use the native tsc binary for the devtools typescript build

The JS-based tsc in devtools node_modules rejects the ambient
devtools-protocol module indirection introduced in 156 with
TS1361 ('Protocol' cannot be used as a value), while the native
Go tsc bundled in third_party/typescript accepts it. The ebuild
keeps the native tsc binary, so point tsc_binary back at it.

--- a/third_party/devtools-frontend/src/scripts/build/typescript/typescript_vars.gni
+++ b/third_party/devtools-frontend/src/scripts/build/typescript/typescript_vars.gni
@@ -6,7 +6,7 @@
 import("../ninja/vars.gni")
 
 if (host_os == "linux") {
-  tsc_binary = devtools_location_prepend + "node_modules/typescript/bin/tsc"
+  tsc_binary = "//third_party/typescript/linux-amd64/src/lib/tsc"
 } else if (host_os == "win") {
   tsc_binary = "//third_party/typescript/windows-amd64/src/lib/tsc.exe"
 } else if (host_os == "mac") {
