Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript extend interface

//declare interface to be extended
interface Vehicle {
  brand: string;
  plateNumber: number;
}

interface Car extends Vehicle {}
 
PREVIOUS NEXT
Tagged: #typescript #extend #interface
ADD COMMENT
Topic
Name
4+3 =