(type, isProperty, isOptional)
| 55938 | return expr.kind === 204 /* SyntaxKind.ArrayLiteralExpression */ && expr.elements.length === 0; |
| 55939 | } |
| 55940 | function addOptionality(type, isProperty, isOptional) { |
| 55941 | if (isProperty === void 0) { isProperty = false; } |
| 55942 | if (isOptional === void 0) { isOptional = true; } |
| 55943 | return strictNullChecks && isOptional ? getOptionalType(type, isProperty) : type; |
| 55944 | } |
| 55945 | // Return the inferred type for a variable, parameter, or property declaration |
| 55946 | function getTypeForVariableLikeDeclaration(declaration, includeOptionality, checkMode) { |
| 55947 | // A variable declared in a for..in statement is of type string, or of type keyof T when the |
no test coverage detected
searching dependent graphs…