Skip to content

Commit

Permalink
add types to pass array for spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Denys Pavlenko committed Apr 9, 2020
1 parent 89f6208 commit dd609f7
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 dd609f7

Please sign in to comment.