export type DeepWritable = T extends (object | readonly any[]) ? { -readonly [P in keyof T]: DeepWritable; } : T;