Type Alias SymbolObject<T, K>

SymbolObject<T, K>: {
    [key: string | number | symbol]: K;
}

Needed because of TS2538: Type symbol cannot be used as an index type See https://github.com/microsoft/TypeScript/issues/1863

Type Parameters

  • T extends object = Record<any, any>
  • K = T[keyof T]