Open this example in the interactive library
Source code
type Area = "jobs" | "users";
type Action = "read" | "write";
console.log(((id: `job-${number}`) => id)("job-42"));
Sample output
job-42

Open this example in the interactive library
type Area = "jobs" | "users";
type Action = "read" | "write";
console.log(((id: `job-${number}`) => id)("job-42"));
job-42