Skip to content

Commit

Permalink
[theme] Fix types to pass array for spacing (#20486)
Browse files Browse the repository at this point in the history
  • Loading branch information
Denys Pavlenko authored Apr 10, 2020
1 parent df9fc5d commit 601bbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/styles/createSpacing.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export interface Spacing {
): string;
}

export type SpacingOptions = number | ((factor: number) => string | number);
export type SpacingOptions = number | ((factor: number) => string | number) | number[];

export default function createSpacing(spacing: SpacingOptions): Spacing;

0 comments on commit 601bbbc

Please sign in to comment.