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'>
TypeScript includes a set of types that can be used for string manipulation.
// Use a template literal to construct a typetype CacheKey<T extends string> = `CACHE-${ Uppercase<T> }`type BlogCache = CacheKey<'blog'>