I have union type:
type A = "a" | "b" | "c";
And I would like to make some type B
which will force an array to have all values listed in type A
:
const arr: B = ["a", "b", "c"];
I have union type:
type A = "a" | "b" | "c";
And I would like to make some type B
which will force an array to have all values listed in type A
:
const arr: B = ["a", "b", "c"];