Open this example in the interactive library
Source code
type Area = "jobs" | "users";
type Action = "read" | "write";
console.log(((kind: Uppercase<Area>) => kind)("JOBS"));
Sample output
JOBS

Open this example in the interactive library
type Area = "jobs" | "users";
type Action = "read" | "write";
console.log(((kind: Uppercase<Area>) => kind)("JOBS"));
JOBS