Answers for "typescript array of objects key value"

0

typescript key value array

let indexedArray: {[key: string]: number}

let indexedArray: {[key: string]: number} = {
    foo: 123,
    bar: 456
}

indexedArray['foo'] = 12;
indexedArray.foo= 45;
Posted by: Guest on October-15-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 "typescript array of objects key value"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language