jalaliday
jalaliday copied to clipboard
Typescript Support
Thanks for this lib.
but it seems there isn't any type definition for typescript types because when I use dayjs.calendar(...)
:
Property 'calendar' does not exist on type 'typeof import(".../node_modules/dayjs/index.d.ts")'.
I think you should extend the default dayjs's type definitions.
Full TS support was impossible by the authors because of the dayjs type design. My PR to dayjs was accepted a few weeks ago and will be in the next version. I started maintaining this repo and move to our Org with the same API and full TS support.
https://github.com/zoomit-org/Dayjs-Jalali-Plugin