The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/definition/Serialized.ts

9 lines
216 B

export type Serialized<T> = T extends Date
? (Exclude<T, Date> | string)
: T extends boolean | number | string | null | undefined
? T
: T extends {}
? {
[K in keyof T]: Serialized<T[K]>;
}
: null;