build(bazel): fix bazel types reference directive resolves (#25774)
PR Close #25774
This commit is contained in:
@ -82,6 +82,9 @@ export class TsCompilerAotCompilerTypeCheckHostAdapter implements ts.CompilerHos
|
||||
trace !: (s: string) => void;
|
||||
// TODO(issue/24571): remove '!'.
|
||||
getDirectories !: (path: string) => string[];
|
||||
resolveTypeReferenceDirectives?:
|
||||
(names: string[],
|
||||
containingFile: string) => (ts.ResolvedTypeReferenceDirective | undefined)[];
|
||||
directoryExists?: (directoryName: string) => boolean;
|
||||
|
||||
constructor(
|
||||
@ -106,6 +109,10 @@ export class TsCompilerAotCompilerTypeCheckHostAdapter implements ts.CompilerHos
|
||||
if (context.getDefaultLibLocation) {
|
||||
this.getDefaultLibLocation = () => context.getDefaultLibLocation !();
|
||||
}
|
||||
if (context.resolveTypeReferenceDirectives) {
|
||||
this.resolveTypeReferenceDirectives = (names: string[], containingFile: string) =>
|
||||
context.resolveTypeReferenceDirectives !(names, containingFile);
|
||||
}
|
||||
if (context.trace) {
|
||||
this.trace = s => context.trace !(s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user