Loading topic
"draft" is narrower than string.2 min read{ [K in keyof T]: ... }.2 min read"red" | "blue" means that a value may be one of several exact strings.2 min readUppercase, Lowercase, Capitalize, and Uncapitalize.2 min readT extends string.2 min read{ [K in keyof T]: ... }. You should also know that keyof T produces a union of an object's property names.2 min readinfer, and mapped types. It also assumes that you have used template literal types such as ` ${"user"}-${number} `.2 min read