Remove unused property ParameterInference#typeNode (#28115)

This commit is contained in:
Andy
2018-10-26 14:44:49 -07:00
committed by GitHub
parent 372c7d9b0c
commit 77d8e15905

View File

@@ -306,10 +306,9 @@ namespace ts.codefix {
}
interface ParameterInference {
declaration: ParameterDeclaration;
type?: Type;
typeNode?: TypeNode;
isOptional?: boolean;
readonly declaration: ParameterDeclaration;
readonly type?: Type;
readonly isOptional?: boolean;
}
namespace InferFromReference {
@@ -355,7 +354,7 @@ namespace ts.codefix {
}
const isConstructor = declaration.kind === SyntaxKind.Constructor;
const callContexts = isConstructor ? usageContext.constructContexts : usageContext.callContexts;
return callContexts && declaration.parameters.map((parameter, parameterIndex) => {
return callContexts && declaration.parameters.map((parameter, parameterIndex): ParameterInference => {
const types: Type[] = [];
const isRest = isRestParameter(parameter);
let isOptional = false;