mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(types): handle array of strings in AppConfig (#2854)
This commit is contained in:
committed by
GitHub
parent
80befc107c
commit
4b241ba3c3
@@ -3,9 +3,11 @@ export interface TightMap<O = any> {
|
||||
}
|
||||
|
||||
export type DeepPartial<T, O = any> = {
|
||||
[P in keyof T]?: T[P] extends object
|
||||
? DeepPartial<T[P], O>
|
||||
: T[P];
|
||||
[P in keyof T]?: T[P] extends Array<string>
|
||||
? string
|
||||
: T[P] extends object
|
||||
? DeepPartial<T[P], O>
|
||||
: T[P];
|
||||
} & {
|
||||
[key: string]: O | TightMap<O>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user