feat(ivy): support custom prefix for imports in `DtsFileTransformer` (#25406)

PR Close #25406
This commit is contained in:
George Kalpakas 2018-07-26 22:48:12 +03:00 committed by Matias Niemelä
parent 29705dd8f2
commit cdd4c9be63
1 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ export class DtsFileTransformer {
private ivyFields = new Map<string, CompileResult[]>(); private ivyFields = new Map<string, CompileResult[]>();
private imports: ImportManager; private imports: ImportManager;
constructor(private coreImportsFrom: ts.SourceFile|null) { constructor(private coreImportsFrom: ts.SourceFile|null, importPrefix?: string) {
this.imports = new ImportManager(coreImportsFrom !== null); this.imports = new ImportManager(coreImportsFrom !== null, importPrefix);
} }
/** /**
@ -62,4 +62,4 @@ export class DtsFileTransformer {
return dts; return dts;
} }
} }