We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a884a02 commit bdeab92Copy full SHA for bdeab92
types/three/src/utils.d.ts
@@ -1,3 +1,6 @@
1
import { Color, ColorKeyword } from './math/Color';
2
3
-export type ColorRepresentation = Color | ColorKeyword | number;
+export type StyleColorString = `${'rgb' | 'hsl'}(${string})`;
4
+export type HexColorString = `#${string & { length: 3 | 6 }}`;
5
+
6
+export type ColorRepresentation = Color | ColorKeyword | StyleColorString | HexColorString | number;
0 commit comments