SelfDTO
Type Alias: SelfDTO<T>
SelfDTO<
T> =Textendsbigint?string:Textends infer U[] ?SelfDTO<U>[] :TextendsMap<string, infer MV> ?Record<string,SelfDTO<MV>> :TextendsSet<infer US> ?SelfDTO<US>[] :TextendsRegExp?string:Textendsobject?{ [K in Extract<FilterOutAttributes2<T, Function>, string>]: T[K] extends bigint ? string : T[K] extends (infer U)[] ? SelfDTO<(...)>[] : (...)[(...)] extends Map<(...), (...)> ? Record<(...), (...)> : (...) extends (...) ? (...) : (...) }:T
Defined in: packages/models/src/types.ts:91
Deep DTO representation of objects, converting properties recursively and respecting toDTO() if available.
If toDTO() is present, its return type is used directly without further recursion.
Type Parameters
T
T