Skip to content

[typescript] format function has no options parameter #13

@lou-jin

Description

@lou-jin

The format function seems to have missing an options parameter.

current format() definition on index.d.ts
format(template?:string): string

result
dayjs-ext_format-function

workaround

// @ts-ignore
return dayjs(dateString).format(format, { timeZone });

When using dayjs-ext I don't want to type // @ts-ignore on my code.
Would it be possible to add an options to format() definition on index.d.ts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions