Open this example in the interactive library
Source code
type Area = "jobs" | "users";
type Action = "read" | "write";
console.log(((route: `/${string}`) => route)("/jobs/7"));
Sample output
/jobs/7

Open this example in the interactive library
type Area = "jobs" | "users";
type Action = "read" | "write";
console.log(((route: `/${string}`) => route)("/jobs/7"));
/jobs/7