Answers for "typescript record optional"

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