Answers for "typescript optional record key"

0

typescript record optional

type PartialRecord<K extends keyof any, T> = {
  [P in K]?: T;
};
type List =  PartialRecord<'a' | 'b' | 'c', string>
Posted by: Guest on August-20-2021

Code answers related to "typescript optional record key"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language