jalaliday icon indicating copy to clipboard operation
jalaliday copied to clipboard

Typescript Support

Open ammoradi opened this issue 4 years ago • 1 comments

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.

ammoradi avatar Apr 18 '20 21:04 ammoradi

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

always-maap avatar Aug 07 '21 06:08 always-maap