Skip to content

Add ObjectSupport TypeScript definition(s) #1441

Closed
@AviBueno

Description

@AviBueno

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions