Answers for "how to make a class with propety of type array in typescript 2.7"

4

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[];
Posted by: Guest on December-03-2020
1

typescript array of object with types

type submitionDataType = {
    title: string,
    desc: string,
    decks: Array<{ front: string, back: string }>
}
Posted by: Guest on August-08-2021

Code answers related to "how to make a class with propety of type array in typescript 2.7"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language