UNPKG

603 BTypeScriptView Raw
1/* tslint:disable:unified-signatures */
2
3export type SpacingArgument = number | string;
4
5export 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
18export type SpacingOptions = number | ((factor: number) => string | number) | number[];
19
20export default function createSpacing(spacing: SpacingOptions): Spacing;
21
\No newline at end of file