fix type of Serialized<T>
This commit is contained in:
parent
896a364de7
commit
7716292c78
1 changed files with 11 additions and 7 deletions
|
|
@ -551,13 +551,17 @@ export type Serialized<T> = {
|
|||
? string
|
||||
: T[K] extends (Date | null)
|
||||
? (string | null)
|
||||
: T[K] extends Record<string, any>
|
||||
? Serialized<T[K]>
|
||||
: T[K] extends (Record<string, any> | null)
|
||||
? (Serialized<T[K]> | null)
|
||||
: T[K] extends (Record<string, any> | undefined)
|
||||
? (Serialized<T[K]> | undefined)
|
||||
: T[K];
|
||||
: T[K] extends (Date | undefined)
|
||||
? (string | undefined)
|
||||
: T[K] extends (Date | null | undefined)
|
||||
? (string | null | undefined)
|
||||
: T[K] extends Record<string, any>
|
||||
? Serialized<T[K]>
|
||||
: T[K] extends (Record<string, any> | null)
|
||||
? (Serialized<T[K]> | null)
|
||||
: T[K] extends (Record<string, any> | undefined)
|
||||
? (Serialized<T[K]> | undefined)
|
||||
: T[K];
|
||||
};
|
||||
|
||||
export type FilterUnionByProperty<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue