DbEntityToDto<T>: {
    [P in keyof T as P extends string
        ? SnakeToCamelCase<P>
        : never]: T[P]
}

Type Parameters

  • T