diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-03-24 10:35:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-24 10:35:44 -0400 |
| commit | 675179a176add68dcd72f386b343c3dba1fe71fe (patch) | |
| tree | 97622a5630eb5a6c2f0464ea8a7347f1985f1c0c /cli/tsc/compiler.d.ts | |
| parent | d740a9e43dad5b3824c3ff2f4aa66cc57a1db185 (diff) | |
chore(types): fix type checking errors in 99_main_compiler.js (#18403)
Diffstat (limited to 'cli/tsc/compiler.d.ts')
| -rw-r--r-- | cli/tsc/compiler.d.ts | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/cli/tsc/compiler.d.ts b/cli/tsc/compiler.d.ts index 24548d16d..a1ee45797 100644 --- a/cli/tsc/compiler.d.ts +++ b/cli/tsc/compiler.d.ts @@ -2,7 +2,7 @@ // Contains types that can be used to validate and check `99_main_compiler.js` -import * as _ts from "./dts/typescript"; +import * as _ts from "./dts/typescript.d.ts"; declare global { namespace ts { @@ -10,9 +10,10 @@ declare global { var libMap: Map<string, string>; var base64encode: (host: ts.CompilerHost, input: string) => string; var normalizePath: (path: string) => string; + interface SourceFile { version?: string; - fileName: string; + scriptSnapShot?: _ts.IScriptSnapshot; } interface CompilerHost { @@ -26,16 +27,13 @@ declare global { var performance: Performance; - namespace deno { - function setIsNodeSourceFileCallback( - callback: (sourceFile: SourceFile) => boolean, - ); - function setNodeBuiltInModuleNames(names: readonly string[]); - function setNodeOnlyGlobalNames(names: readonly string[]); - } + function setLocalizedDiagnosticMessages( + messages: Record<string, string>, + ): void; } namespace ts { + // @ts-ignore allow using an export = here export = _ts; } |
