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

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