(operand, type, diagnostic, isAwaitValid)
| 78249 | } |
| 78250 | } |
| 78251 | function checkArithmeticOperandType(operand, type, diagnostic, isAwaitValid) { |
| 78252 | if (isAwaitValid === void 0) { isAwaitValid = false; } |
| 78253 | if (!isTypeAssignableTo(type, numberOrBigIntType)) { |
| 78254 | var awaitedType = isAwaitValid && getAwaitedTypeOfPromise(type); |
| 78255 | errorAndMaybeSuggestAwait(operand, !!awaitedType && isTypeAssignableTo(awaitedType, numberOrBigIntType), diagnostic); |
| 78256 | return false; |
| 78257 | } |
| 78258 | return true; |
| 78259 | } |
| 78260 | function isReadonlyAssignmentDeclaration(d) { |
| 78261 | if (!ts.isCallExpression(d)) { |
| 78262 | return false; |
no test coverage detected