Closed
Description
TypeScript Version: 3.7.0-dev.20190831
Search Terms: mapped types
Code
type M<T> = {
[K in keyof T]: never;
}
type MStr = M<string>;
Expected behavior:
MStr
is an object type where the corresponding value type for all properties of string type ("toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" ...) will be never
Actual behavior:
type of MStr
is string
Playground Link: Link
Related Issues: