File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3157,7 +3157,7 @@ namespace ts {
3157
3157
// Return the type implied by an object binding pattern
3158
3158
function getTypeFromObjectBindingPattern(pattern: ObjectBindingPattern, includePatternInType: boolean, reportErrors: boolean): ResolvedType {
3159
3159
const members = createMap<Symbol>();
3160
- let hasComputedProperties: boolean ;
3160
+ let hasComputedProperties = false ;
3161
3161
forEach(pattern.elements, e => {
3162
3162
const name = e.propertyName || <Identifier>e.name;
3163
3163
if (isComputedNonLiteralName(name)) {
@@ -10274,7 +10274,7 @@ namespace ts {
10274
10274
const contextualTypeHasPattern = contextualType && contextualType.pattern &&
10275
10275
(contextualType.pattern.kind === SyntaxKind.ObjectBindingPattern || contextualType.pattern.kind === SyntaxKind.ObjectLiteralExpression);
10276
10276
let typeFlags: TypeFlags = 0;
10277
- let patternWithComputedProperties: boolean | undefined ;
10277
+ let patternWithComputedProperties = false ;
10278
10278
let hasComputedStringProperty = false;
10279
10279
let hasComputedNumberProperty = false;
10280
10280
You can’t perform that action at this time.
0 commit comments