1

Is there a way in typescript to do the following:

type Foo = {
  code?: string;
  name: string;
  bar: number;
}

let bar: Tuple<Foo>; // a: [string | undefined, string, number]
Nullndr
  • 1,624
  • 1
  • 6
  • 24

0 Answers0