String types TypeScript includes a set of types that can be used for string manipulation. Uppercase // Use a template literal to construct a typetype CacheKey<T extends string> = `CACHE-${ Uppercase<T> }`type BlogCache = CacheKey<'blog'> Template literals https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html#uppercasestringtype