Open fluidsonic opened 4 months ago
Hi @fluidsonic, thanks for reporting, looks like its missing in typings https://github.com/js-joda/js-joda/blob/main/packages/core/typings/js-joda.d.ts#L1562.
We are open for PR's
@pithu I'd like to work on this one, can you assign it to me.
Sure 👍 , could you please check if toString is missing at other places in typings
In the TypeScript definitions:
YearMonth
has no explicitly overriddentoString()
in its type definition.LocalDate
and others do have an explicitly overriddentoString()
in its type definition.When calling
toString()
on aYearMonth
(which returns an ISO-representation), it causes a false-positive ESLint warning:(It might be worth double-checking all classes with a custom
toString()
implementation.)