Closed matteo-gobbo closed 1 year ago
Can you try one of the two below:
const COLORS = {
PRIMARY: "#000000",
ORANGE: "#111111",
RED_MAIN: "#222222"
} as const;
or
const COLORS: Record<string, `#${string}`> = {
PRIMARY: "#000000",
ORANGE: "#111111",
RED_MAIN: "#222222"
}
It worked, thank you!
Hi, I'm experiencing some issues using the latest version of the library.
The project in which I'm using the library is a Vite + TypeScript + React project. I'm using the version
3.2.1
of react-countdown-circle-timer.I'm trying to declare the component this way:
but I'm receiving this type error for "colors" prop:
The colors constants are defined in an object like this one: