Skip to content

Commit

Permalink
refactor(color): update swatches() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 10, 2023
1 parent 89f0209 commit ba73557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/color/src/swatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const swatches = (
cols: (ReadonlyColor | string)[],
shapeFn: Fn2<ReadonlyColor | string, number, any[]>,
attribs: IObjectOf<any> = {}
) => ["g", attribs, ...cols.map(shapeFn)];
): [string, IObjectOf<any>, ...any[]] => ["g", attribs, ...cols.map(shapeFn)];

export const swatchesH = (
cols: (ReadonlyColor | string)[],
Expand Down

0 comments on commit ba73557

Please sign in to comment.