File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -306,10 +306,9 @@ namespace ts.codefix {
306306 }
307307
308308 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 ;
313312 }
314313
315314 namespace InferFromReference {
@@ -355,7 +354,7 @@ namespace ts.codefix {
355354 }
356355 const isConstructor = declaration . kind === SyntaxKind . Constructor ;
357356 const callContexts = isConstructor ? usageContext . constructContexts : usageContext . callContexts ;
358- return callContexts && declaration . parameters . map ( ( parameter , parameterIndex ) => {
357+ return callContexts && declaration . parameters . map ( ( parameter , parameterIndex ) : ParameterInference => {
359358 const types : Type [ ] = [ ] ;
360359 const isRest = isRestParameter ( parameter ) ;
361360 let isOptional = false ;
You can’t perform that action at this time.
0 commit comments