feat(ivy): support custom prefix for imports in `DtsFileTransformer` (#25406)
PR Close #25406
This commit is contained in:
parent
29705dd8f2
commit
cdd4c9be63
|
@ -20,8 +20,8 @@ export class DtsFileTransformer {
|
|||
private ivyFields = new Map<string, CompileResult[]>();
|
||||
private imports: ImportManager;
|
||||
|
||||
constructor(private coreImportsFrom: ts.SourceFile|null) {
|
||||
this.imports = new ImportManager(coreImportsFrom !== null);
|
||||
constructor(private coreImportsFrom: ts.SourceFile|null, importPrefix?: string) {
|
||||
this.imports = new ImportManager(coreImportsFrom !== null, importPrefix);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -62,4 +62,4 @@ export class DtsFileTransformer {
|
|||
|
||||
return dts;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue