Interface IHash<T>

A hash type for use in interfaces.

interface IHash<T> {
    [key: string]: T;
}

Type Parameters

  • T

Indexable

[key: string]: T

Key must be string, value must be of type T.