ngoclb

Fullstack Developer and Freelancer

March 1, 2023

[TypeScript] The left-hand side of an arithmetic operation must be type 'any', 'number', 'bigint' or an enum type

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.