Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript array of objects

// Create an interface that describes your object
interface Car {
  name: string;
  brand: string;
  price: number;
}

// The variable `cars` below has a type of an array of car objects.
let cars: Car[];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #array #objects
ADD COMMENT
Topic
Name
7+9 =