My current interface looks like this:
export interface Folder {
name: string;
id: number;
date: Date;
}
However, in the actual scenario, the JSON response provides the date as a string type. How should I handle this data transfer between the back-end and front-end? Do I need to create two interfaces - one with date of type string and another one with type Date?