rucken/ionic

fix: Add config for models to transform ionic date format

Closed this issue · 0 comments

export class CustomUser extends User {

sample

    @Transform(transformDateToString, { toClassOnly: true })
    @Transform(transformStringToDate, { toPlainOnly: true })
    createdAt: Date = undefined;