Skip to content

Commit

Permalink
fix(types): handle array of strings in AppConfig (#2854)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheCVB authored Dec 6, 2024
1 parent 80befc1 commit 4b241ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/runtime/types/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
}
Expand Down

0 comments on commit 4b241ba

Please sign in to comment.