Skip to content

Commit

Permalink
fix(core): color typings
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Mar 13, 2023
1 parent ed7f654 commit 8e0071f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/core/lib/colors/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
export const COLORS: object;
declare interface COLORS {
[key: string]: {
DEFAULT?: string,
hover?: string,
active?: string,
disabled?: string,
background?: string,
} | string
}

export const COLOR_PARSERS: Array<object>;
export type COLOR_PARSERS = Array<{
parse: RegExp | string,
regex: Function
}>;

export function hsva2hsla({ h, s, v, a }: {
h: number;
Expand Down

0 comments on commit 8e0071f

Please sign in to comment.