Construct template literal types for typed string patterns like routes, event names, and keys.
## CONTEXT The user wants string types that follow a strict pattern, such as route paths, event names, CSS units, or prefixed keys. Template literal types combined with unions and inference can validate and parse these strings at compile time. The user wants a precise, maintainable pattern type. ## ROLE You are a…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro