I suspect is this a simple one but I don't know enough of the terminology to google it!
type AllowedLabels = "One"|"Two"|"Three";
const printLabel = (label:AllowedLabels) => {
// code
}
printLabel("Two"); // Argument of type "AllowedLabels" is not assignable to parameter of type "AllowedLabels"
printLabel("Two" as AllowedLabels); // No TS Error?
What are my eyes missing?