We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebe900a commit 2964008Copy full SHA for 2964008
packages/system/src/types.ts
@@ -120,11 +120,11 @@ export interface TransformValue {
120
* leading to primitive values (non-objects.)
121
*/
122
export type SynthesizedPath<T extends Record<string, unknown>> = {
123
- [P in keyof T]:
124
- | (T[P] extends Record<string, unknown>
125
- ? `${string & P}.${SynthesizedPath<T[P]>}`
126
- : `${string & P}`)
127
- | number
+ [P in keyof T]: P extends string
+ ? T[P] extends Record<string, unknown>
+ ? `${P}.${SynthesizedPath<T[P]>}`
+ : P
+ : never
128
}[keyof T]
129
130
export type ThemeNamespaceValue<K extends string, T extends ITheme> =
0 commit comments