File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -306,10 +306,9 @@ namespace ts.codefix {
306
306
}
307
307
308
308
interface ParameterInference {
309
- declaration : ParameterDeclaration ;
310
- type ?: Type ;
311
- typeNode ?: TypeNode ;
312
- isOptional ?: boolean ;
309
+ readonly declaration : ParameterDeclaration ;
310
+ readonly type ?: Type ;
311
+ readonly isOptional ?: boolean ;
313
312
}
314
313
315
314
namespace InferFromReference {
@@ -355,7 +354,7 @@ namespace ts.codefix {
355
354
}
356
355
const isConstructor = declaration . kind === SyntaxKind . Constructor ;
357
356
const callContexts = isConstructor ? usageContext . constructContexts : usageContext . callContexts ;
358
- return callContexts && declaration . parameters . map ( ( parameter , parameterIndex ) => {
357
+ return callContexts && declaration . parameters . map ( ( parameter , parameterIndex ) : ParameterInference => {
359
358
const types : Type [ ] = [ ] ;
360
359
const isRest = isRestParameter ( parameter ) ;
361
360
let isOptional = false ;
You can’t perform that action at this time.
0 commit comments