exp_month and exp_year have a type of number
Argument of type 'string' is not assignable to parameter of type 'number'. TS2345
> 80 | const expirationDate = dayjs().set("month", exp_month)
| ^
81 | .set("year", exp_year)
82 | .format("MMMM, YYYY");
83 |
If I cast exp_year to a string and pass into set() I get the correct result and no error. Which is confusing because
the type definition of set calls for a number as the second argument.