Difference between index signature and Record for empty object?
The definition for Record is: /** * Construct a type with a set of properties K of type T */ type Record<K extends keyof any, T> = { [P in K]: T; }; When creating a type like type MyType = Record<string, string>;, inlining Record leads to the following type: type MyType = { [P … Read more