Skip to content

Commit

Permalink
fix: ensure the number is one of the keys
Browse files Browse the repository at this point in the history
  • Loading branch information
quantizor authored and gregberge committed Oct 30, 2021
1 parent efdefe1 commit c2f71fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/system/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ declare type SynthesizedPath<T extends {}> = {
| (T[P] extends { [key: string]: any; [key: number]: any }
? `${string & P}` | `${string & P}.${SynthesizedPath<T[P]>}`
: `${string & P}`)
| number
| (number & P)
}[T extends any[] ? number & keyof T : keyof T]

export type ThemeNamespaceValue<
Expand Down

0 comments on commit c2f71fd

Please sign in to comment.