Closed as not planned
Description
π Search Terms
"Date arithmetic"
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about Dates
β― Playground Link
No response
π» Code
const a = new Date();
const b = new Date();
const c = a - b;
π Actual behavior
TypeScript shows error: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.ts(2362)
π Expected behavior
No error because the operation works.
Additional information about the issue
No response