@@ -29,11 +29,11 @@ describe('Constructor Parameter Transformer', () => {
29
29
` ;
30
30
31
31
const output = `
32
- import * as tslib_1 from "tslib";
32
+ import { __decorate } from "tslib";
33
33
export class ClassInject { } ;
34
34
let MyService = class MyService { constructor(v) { } };
35
35
MyService.ctorParameters = () => [ { type: ClassInject } ];
36
- MyService = tslib_1. __decorate([ Injectable() ], MyService);
36
+ MyService = __decorate([ Injectable() ], MyService);
37
37
export { MyService };
38
38
` ;
39
39
@@ -78,13 +78,13 @@ describe('Constructor Parameter Transformer', () => {
78
78
` ;
79
79
80
80
const output = `
81
- import * as tslib_1 from "tslib";
81
+ import { __decorate } from "tslib";
82
82
let RootProvidedService = class RootProvidedService { constructor() { } };
83
- RootProvidedService = tslib_1. __decorate([ Injectable({ providedIn: 'root' }) ], RootProvidedService);
83
+ RootProvidedService = __decorate([ Injectable({ providedIn: 'root' }) ], RootProvidedService);
84
84
export { RootProvidedService };
85
85
let MyService = class MyService { constructor(v) { } };
86
86
MyService.ctorParameters = () => [ { type: RootProvidedService } ];
87
- MyService = tslib_1. __decorate([ Injectable() ], MyService);
87
+ MyService = __decorate([ Injectable() ], MyService);
88
88
export { MyService };
89
89
` ;
90
90
@@ -115,14 +115,14 @@ describe('Constructor Parameter Transformer', () => {
115
115
` ;
116
116
117
117
const output = `
118
- import * as tslib_1 from "tslib";
118
+ import { __decorate } from "tslib";
119
119
import { RootProvidedService } from './root-provided-service';
120
120
121
121
let MyService = class MyService {
122
122
constructor(v) { }
123
123
};
124
124
MyService.ctorParameters = () => [ { type: RootProvidedService } ];
125
- MyService = tslib_1. __decorate([ Injectable() ], MyService);
125
+ MyService = __decorate([ Injectable() ], MyService);
126
126
export { MyService };
127
127
` ;
128
128
@@ -143,11 +143,11 @@ describe('Constructor Parameter Transformer', () => {
143
143
` ;
144
144
145
145
const output = `
146
- import * as tslib_1 from "tslib";
146
+ import { __decorate, __param } from "tslib";
147
147
export const INTERFACE_INJECT = new InjectionToken('interface-inject');
148
148
let MyService = class MyService { constructor(v) { } };
149
149
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);
151
151
export { MyService };
152
152
` ;
153
153
@@ -168,11 +168,11 @@ describe('Constructor Parameter Transformer', () => {
168
168
` ;
169
169
170
170
const output = `
171
- import * as tslib_1 from "tslib";
171
+ import { __decorate, __param } from "tslib";
172
172
export const INTERFACE_INJECT = new InjectionToken('interface-inject');
173
173
let MyService = class MyService { constructor(v) { } };
174
174
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);
176
176
export { MyService };
177
177
` ;
178
178
@@ -199,11 +199,11 @@ describe('Constructor Parameter Transformer', () => {
199
199
` ;
200
200
201
201
const output = `
202
- import * as tslib_1 from "tslib";
202
+ import { __decorate, __param } from "tslib";
203
203
import { INTERFACE_INJECT } from './module-inject';
204
204
let MyService = class MyService { constructor(v) { } };
205
205
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);
207
207
export { MyService };
208
208
` ;
209
209
0 commit comments