Skip to content

date-fns locale typescript problem #924

@ozanmanav

Description

@ozanmanav

Hi

I have a typing problem with date-fns.

I'm using parseDateForDatePicker for parsing date with format and locale with date-fns

image

I'm when i check source code, i just seen locale is returning as a string but date-fns accepting Locale object, because of that i'm giving error like that;

image

Thanks

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