deep partial deef

This commit is contained in:
SPRINX0\prochazka
2025-02-06 13:04:15 +01:00
parent f6dcc4bb1f
commit 825abf82e6

View File

@@ -189,3 +189,9 @@ export interface DatabaseInfoObjects {
export interface DatabaseInfo extends DatabaseInfoObjects {
engine?: string;
}
type DeepPartial<T> = {
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
};
export type DatabaseInfoPartial = DeepPartial<DatabaseInfo>;