Commit 32a901d 1 parent db39b43 commit 32a901d Copy full SHA for 32a901d
File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -12806,9 +12806,7 @@ namespace ts {
12806
12806
12807
12807
function getParameterTypeFromBody(parameter: ParameterDeclaration): Type {
12808
12808
const func = <FunctionLikeDeclaration>parameter.parent
12809
- if (!func.body) {
12810
- return unknownType;
12811
- }
12809
+ if (!func.body || isRestParameter(parameter)) return
12812
12810
12813
12811
let type: Type;
12814
12812
let types: Type[];
@@ -16750,6 +16748,7 @@ namespace ts {
16750
16748
}
16751
16749
16752
16750
function checkAndAggregateParameterExpressionTypes(parameter: ParameterDeclaration): Type[] {
16751
+ if (isRestParameter(parameter)) return
16753
16752
const func = <FunctionLikeDeclaration>parameter.parent
16754
16753
const usageTypes: Type[] = []
16755
16754
forEachInvocation(<Block>func.body, invocation => {
You can’t perform that action at this time.
0 commit comments