Interface Dictionary<Type>

represents JSON data structure

Example

let db: Dictionary<number> = { apple: 10, orange: 20 }
interface Dictionary<Type> {
    [key: string]: Type;
}

Type Parameters

  • Type

Indexable

[key: string]: Type

key string