TypeScript est égal à la chaîne
// with an interface
interface ColorScheme {
theme: "dark" | "light",
variant: "red | "blue",
}
Coder Cuttlefish
// with an interface
interface ColorScheme {
theme: "dark" | "light",
variant: "red | "blue",
}