Closed
Description
Describe the bug
Attempting to initialize a dayjs object based on ObjectSupport syntax under a TypeScript project yields the following error: Type 'number' is not assignable to type '{ (): number; (value: number): Dayjs; }'.
Expected behavior
The dayjs index.d.ts file should be updated such that object-based initialization would be possible.
Information
- Day.js Version: v1.10.4
- OS: MacOS
- Browser: Irrelevant. Node.js project.
- Time zone: UTC