Skip to content

Using formatters with TS interface #41

@kamil7x

Description

@kamil7x

I have a simple interface

interface Todo {
  title: string;
  deadline: Date;
}

And it persists correctly.
But is there a way for rehydrating Date object without rewriting this to class? I know, that this would be simple class, it's just I don't want to use one when it's not needed.

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