fix(ivy): remove spurious comma in ngtsc-built .d.ts files (#24738)

On accident a comma was emitted between imports when generating .d.ts
files. This commit removes it.

PR Close #24738
This commit is contained in:
Alex Rickabaugh 2018-06-29 14:25:46 -07:00 committed by Matias Niemelä
parent cde0b4b361
commit 48394c64ae

View File

@ -59,7 +59,7 @@ export class DtsFileTransformer {
const imports = this.imports.getAllImports(tsPath, this.coreImportsFrom);
if (imports.length !== 0) {
dts = imports.map(i => `import * as ${i.as} from '${i.name}';\n`).join() + dts;
dts = imports.map(i => `import * as ${i.as} from '${i.name}';\n`).join('') + dts;
}
return dts;