← Back to TIL

Type Initialization

Objects

Initialization for Object Types

const fruitNames: {[key: string]: number} = {Apple: 10, Orange: 20}