mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 19:36:00 +00:00
deep partial deef
This commit is contained in:
6
packages/types/dbinfo.d.ts
vendored
6
packages/types/dbinfo.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user