Skip to content

Commit

Permalink
Fix color.d.ts test
Browse files Browse the repository at this point in the history
  • Loading branch information
latin-1 authored and LeaVerou committed Dec 2, 2022
1 parent a21dede commit 8962db2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/test/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import Color from "colorjs.io/src/color";

// @ts-expect-error
new Color();
// @ts-expect-error
new Color("srgb", [1, 2, 3]);

new Color("red");
new Color(new Color("red"));
new Color("srgb", [1, 2, 3]);
new Color("srgb", [1, 2, 3], 1);

const color = new Color("red");
Expand Down

0 comments on commit 8962db2

Please sign in to comment.