Answers for "typescript extends multiple types"

-1

typescript extends multiple types

interface You {
  name: string;
  value: number;
}

interface FooYou {
  name: 'foo';
}

interface ConcreteFooYou extends You, FooYou {
  concrete: boolean;
}
Posted by: Guest on March-22-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language