@@ -125,15 +125,15 @@ export {};
125
125
126
126
127
127
//// [Diagnostics reported]
128
- fnDecl . ts ( 12 , 27 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
129
- fnDecl . ts ( 16 , 36 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
130
- fnDecl . ts ( 20 , 26 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
131
- fnDecl . ts ( 24 , 56 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
132
- fnDecl . ts ( 28 , 46 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
133
- fnDecl . ts ( 32 , 45 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
134
- fnDecl . ts ( 37 , 47 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
135
- fnDecl . ts ( 41 , 37 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
136
- fnDecl . ts ( 45 , 35 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
128
+ fnDecl . ts ( 12 , 27 ) : error TS9025: Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
129
+ fnDecl . ts ( 16 , 36 ) : error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
130
+ fnDecl . ts ( 20 , 26 ) : error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
131
+ fnDecl . ts ( 24 , 56 ) : error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
132
+ fnDecl . ts ( 28 , 46 ) : error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
133
+ fnDecl . ts ( 32 , 45 ) : error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
134
+ fnDecl . ts ( 37 , 47 ) : error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
135
+ fnDecl . ts ( 41 , 37 ) : error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
136
+ fnDecl . ts ( 45 , 35 ) : error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
137
137
138
138
139
139
= === fnDecl . ts ( 9 errors ) === =
@@ -150,64 +150,64 @@ fnDecl.ts(45,35): error TS9025: Declaration emit for this parameter requires imp
150
150
export function fnDeclHasUndefined ( p : T | undefined = [ ] , rParam : string ) : void { } ;
151
151
export function fnDeclBad ( p : T = [ ] , rParam : string ) : void { } ;
152
152
~ ~ ~ ~ ~ ~ ~ ~ ~
153
- ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
153
+ ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
154
154
! ! ! related TS9028 fnDecl . ts :12 :27 : Add a type annotation to the parameter p .
155
155
156
156
export const fnExprOk1 = function ( array : number [ ] = [ ] , rParam : string ) : void { } ;
157
157
export const fnExprOk2 = function ( array : T | undefined = [ ] , rParam : string ) : void { } ;
158
158
export const fnExprBad = function ( array : T = [ ] , rParam : string ) : void { } ;
159
159
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
160
- ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
160
+ ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
161
161
! ! ! related TS9028 fnDecl . ts :16 :36 : Add a type annotation to the parameter array .
162
162
163
163
export const arrowOk1 = ( array : number [ ] = [ ] , rParam : string ) : void => { } ;
164
164
export const arrowOk2 = ( array : T | undefined = [ ] , rParam : string ) : void => { } ;
165
165
export const arrowBad = ( array : T = [ ] , rParam : string ) : void => { } ;
166
166
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
167
- ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
167
+ ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
168
168
! ! ! related TS9028 fnDecl . ts :20 :26 : Add a type annotation to the parameter array .
169
169
170
170
export const inObjectLiteralFnExprOk1 = { o : function ( array : number [ ] = [ ] , rParam : string ) : void { } } ;
171
171
export const inObjectLiteralFnExprOk2 = { o : function ( array : T | undefined = [ ] , rParam : string ) : void { } } ;
172
172
export const inObjectLiteralFnExprBad = { o : function ( array : T = [ ] , rParam : string ) : void { } } ;
173
173
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
174
- ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
174
+ ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
175
175
! ! ! related TS9028 fnDecl . ts :24 :56 : Add a type annotation to the parameter array .
176
176
177
177
export const inObjectLiteralArrowOk1 = { o : ( array : number [ ] = [ ] , rParam : string ) : void => { } } ;
178
178
export const inObjectLiteralArrowOk2 = { o : ( array : T | undefined = [ ] , rParam : string ) : void => { } } ;
179
179
export const inObjectLiteralArrowBad = { o : ( array : T = [ ] , rParam : string ) : void => { } } ;
180
180
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
181
- ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
181
+ ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
182
182
! ! ! related TS9028 fnDecl . ts :28 :46 : Add a type annotation to the parameter array .
183
183
184
184
export const inObjectLiteralMethodOk1 = { o ( array : number [ ] = [ ] , rParam : string ) : void { } } ;
185
185
export const inObjectLiteralMethodOk2 = { o ( array : T | undefined = [ ] , rParam : string ) : void { } } ;
186
186
export const inObjectLiteralMethodBad = { o ( array : T = [ ] , rParam : string ) : void { } } ;
187
187
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
188
- ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
188
+ ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
189
189
! ! ! related TS9028 fnDecl . ts :32 :45 : Add a type annotation to the parameter array .
190
190
191
191
192
192
export class InClassFnExprOk1 { o = function ( array : number [ ] = [ ] , rParam : string ) : void { } } ;
193
193
export class InClassFnExprOk2 { o = function ( array : T | undefined = [ ] , rParam : string ) : void { } } ;
194
194
export class InClassFnExprBad { o = function ( array : T = [ ] , rParam : string ) : void { } } ;
195
195
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
196
- ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
196
+ ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
197
197
! ! ! related TS9028 fnDecl . ts :37 :47 : Add a type annotation to the parameter array .
198
198
199
199
export class InClassArrowOk1 { o = ( array : number [ ] = [ ] , rParam : string ) : void => { } } ;
200
200
export class InClassArrowOk2 { o = ( array : T | undefined = [ ] , rParam : string ) : void => { } } ;
201
201
export class InClassArrowBad { o = ( array : T = [ ] , rParam : string ) : void => { } } ;
202
202
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
203
- ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
203
+ ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
204
204
! ! ! related TS9028 fnDecl . ts :41 :37 : Add a type annotation to the parameter array .
205
205
206
206
export class InClassMethodOk1 { o ( array : number [ ] = [ ] , rParam : string ) : void { } } ;
207
207
export class InClassMethodOk2 { o ( array : T | undefined = [ ] , rParam : string ) : void { } } ;
208
208
export class InClassMethodBad { o ( array : T = [ ] , rParam : string ) : void { } } ;
209
209
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
210
- ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to it 's type. This is not supported with --isolatedDeclarations.
210
+ ! ! ! error TS9025 : Declaration emit for this parameter requires implicitly adding undefined to its type . This is not supported with -- isolatedDeclarations .
211
211
! ! ! related TS9028 fnDecl . ts :45 :35 : Add a type annotation to the parameter array .
212
212
213
213
0 commit comments