mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-11 16:38:46 -05:00
Remove unused property ParameterInference#typeNode (#28115)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user