[TypeScript] The left-hand side of an arithmetic operation must be type 'any', 'number', 'bigint' or an enum type
March 1, 2023
The left-hand side of an arithmetic operation must be type ‘any’, ‘number’, ‘bigint’ or an enum type The error “The left-hand side of an arithmetic operation must be type ‘any’, ‘number’, ‘bigint’ or an enum type” occurs when you have an arithmetic operation with values that are not of type any, number or enum, e.