Skip to content

Commit

Permalink
fix(component): adds optional number type to position and grid mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
dw2 committed Oct 23, 2019
1 parent 604ab1a commit 8ff50ca
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,16 @@ declare module "styled-tidy" {
align: string,
justify: string
): string;
export function grid(cols: string, colGap: string, rowGap?: string): string;
export function grid(
cols: string,
colGap: string | number,
rowGap?: string | number
): string;
export function position(
value: string,
top: string,
right?: string,
bottom?: string,
left?: string
top: string | number,
right?: string | number,
bottom?: string | number,
left?: string | number
): string;
}

0 comments on commit 8ff50ca

Please sign in to comment.