What is the Record type in typescript?
Can someone give a simple definition of what Record is? A Record<K, T> is an object type whose property keys are K and whose property values are T. That is, keyof Record<K, T> is equivalent to K, and Record<K, T>[K] is (basically) equivalent to T. Is Record<K,T> merely a way of saying “all properties on … Read more