Answers for "typescript record with optional keys"

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 record with optional keys"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language