Skip to content

Commit

Permalink
Add types declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Mar 14, 2024
1 parent 6d0f7c1 commit 87bbafd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default function parse(color: string): {
space: 'rgb' | 'hsl' | 'hwb' | 'cmyk' | 'lab' | 'lch' | 'oklab' | 'oklch' | string;
values: number[];
alpha: number;
}

0 comments on commit 87bbafd

Please sign in to comment.