Skip to content

Commit

Permalink
Add numeric index signature to ObjectOrArray
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Jun 23, 2020
1 parent eb79c35 commit c9da2e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/css/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ export interface ThemeUICSSObject
*/
export type ThemeUIStyleObject = ThemeUICSSObject | ThemeDerivedStyles

type ObjectOrArray<T> = T[] | { [K: string]: T | ObjectOrArray<T> }
type ObjectOrArray<T> =
| T[]
| { [K: string]: T | ObjectOrArray<T>; [I: number]: T }

export type TLengthStyledSystem = string | 0 | number

Expand Down

0 comments on commit c9da2e1

Please sign in to comment.