1 |
|
2 |
|
3 | export type SpacingArgument = number | string;
|
4 |
|
5 | export interface Spacing {
|
6 | (): number;
|
7 | (value: number): number;
|
8 | (topBottom: SpacingArgument, rightLeft: SpacingArgument): string;
|
9 | (top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
|
10 | (
|
11 | top: SpacingArgument,
|
12 | right: SpacingArgument,
|
13 | bottom: SpacingArgument,
|
14 | left: SpacingArgument
|
15 | ): string;
|
16 | }
|
17 |
|
18 | export type SpacingOptions = number | ((factor: number) => string | number) | number[];
|
19 |
|
20 | export default function createSpacing(spacing: SpacingOptions): Spacing;
|
21 |
|
\ | No newline at end of file |