mobx-sync icon indicating copy to clipboard operation
mobx-sync copied to clipboard

Using formatters with TS interface

Open kamil7x opened this issue 4 years ago • 0 comments

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.

kamil7x avatar Mar 03 '21 08:03 kamil7x