@@ -29,11 +29,11 @@ describe('Constructor Parameter Transformer', () => {
2929 ` ;
3030
3131 const output = `
32- import * as tslib_1 from "tslib";
32+ import { __decorate } from "tslib";
3333 export class ClassInject { } ;
3434 let MyService = class MyService { constructor(v) { } };
3535 MyService.ctorParameters = () => [ { type: ClassInject } ];
36- MyService = tslib_1. __decorate([ Injectable() ], MyService);
36+ MyService = __decorate([ Injectable() ], MyService);
3737 export { MyService };
3838 ` ;
3939
@@ -78,13 +78,13 @@ describe('Constructor Parameter Transformer', () => {
7878 ` ;
7979
8080 const output = `
81- import * as tslib_1 from "tslib";
81+ import { __decorate } from "tslib";
8282 let RootProvidedService = class RootProvidedService { constructor() { } };
83- RootProvidedService = tslib_1. __decorate([ Injectable({ providedIn: 'root' }) ], RootProvidedService);
83+ RootProvidedService = __decorate([ Injectable({ providedIn: 'root' }) ], RootProvidedService);
8484 export { RootProvidedService };
8585 let MyService = class MyService { constructor(v) { } };
8686 MyService.ctorParameters = () => [ { type: RootProvidedService } ];
87- MyService = tslib_1. __decorate([ Injectable() ], MyService);
87+ MyService = __decorate([ Injectable() ], MyService);
8888 export { MyService };
8989 ` ;
9090
@@ -115,14 +115,14 @@ describe('Constructor Parameter Transformer', () => {
115115 ` ;
116116
117117 const output = `
118- import * as tslib_1 from "tslib";
118+ import { __decorate } from "tslib";
119119 import { RootProvidedService } from './root-provided-service';
120120
121121 let MyService = class MyService {
122122 constructor(v) { }
123123 };
124124 MyService.ctorParameters = () => [ { type: RootProvidedService } ];
125- MyService = tslib_1. __decorate([ Injectable() ], MyService);
125+ MyService = __decorate([ Injectable() ], MyService);
126126 export { MyService };
127127 ` ;
128128
@@ -143,11 +143,11 @@ describe('Constructor Parameter Transformer', () => {
143143 ` ;
144144
145145 const output = `
146- import * as tslib_1 from "tslib";
146+ import { __decorate, __param } from "tslib";
147147 export const INTERFACE_INJECT = new InjectionToken('interface-inject');
148148 let MyService = class MyService { constructor(v) { } };
149149 MyService.ctorParameters = () => [ { type: undefined, decorators: [{ type: Inject, args: [INTERFACE_INJECT,] }] } ];
150- MyService = tslib_1. __decorate([ Injectable(), tslib_1. __param(0, Inject(INTERFACE_INJECT)) ], MyService);
150+ MyService = __decorate([ Injectable(), __param(0, Inject(INTERFACE_INJECT)) ], MyService);
151151 export { MyService };
152152 ` ;
153153
@@ -168,11 +168,11 @@ describe('Constructor Parameter Transformer', () => {
168168 ` ;
169169
170170 const output = `
171- import * as tslib_1 from "tslib";
171+ import { __decorate, __param } from "tslib";
172172 export const INTERFACE_INJECT = new InjectionToken('interface-inject');
173173 let MyService = class MyService { constructor(v) { } };
174174 MyService.ctorParameters = () => [ { type: undefined, decorators: [{ type: Inject, args: [INTERFACE_INJECT,] }] } ];
175- MyService = tslib_1. __decorate([ Injectable(), tslib_1. __param(0, Inject(INTERFACE_INJECT)) ], MyService);
175+ MyService = __decorate([ Injectable(), __param(0, Inject(INTERFACE_INJECT)) ], MyService);
176176 export { MyService };
177177 ` ;
178178
@@ -199,11 +199,11 @@ describe('Constructor Parameter Transformer', () => {
199199 ` ;
200200
201201 const output = `
202- import * as tslib_1 from "tslib";
202+ import { __decorate, __param } from "tslib";
203203 import { INTERFACE_INJECT } from './module-inject';
204204 let MyService = class MyService { constructor(v) { } };
205205 MyService.ctorParameters = () => [ { type: undefined, decorators: [{ type: Inject, args: [INTERFACE_INJECT,] }] } ];
206- MyService = tslib_1. __decorate([ Injectable(), tslib_1. __param(0, Inject(INTERFACE_INJECT)) ], MyService);
206+ MyService = __decorate([ Injectable(), __param(0, Inject(INTERFACE_INJECT)) ], MyService);
207207 export { MyService };
208208 ` ;
209209
0 commit comments