Open Silence-dream opened 1 year ago
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never; type ExpandRecursively<T> = T extends object ? T extends infer O ? { [K in keyof O]: ExpandRecursively<O[K]> } : never : T;
export declare type Overwrite<T, U> = T extends unknown ? Pick<T, Exclude<keyof T, keyof U>> & U : never;