Answers for "record optional typescript"

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"

Browse Popular Code Answers by Language