Skip to content

toDate() method with "." literal returns never #2

@tomferez

Description

@tomferez

Hi,

When using the toDate() method with a IntlDateFormatter that uses a "." on a field level, the returned type is never.

Example: date: "page.date.toDate('d.m.Y')" returns "never" - iso "string | number".

Am no expert of Typescript so couldn't really help with the issue...

Thanks!
Tom

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