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