ObjMap.d.ts 318 B

12345678910111213141516
  1. export interface ObjMap<T> {
  2. [key: string]: T;
  3. }
  4. export declare type ObjMapLike<T> =
  5. | ObjMap<T>
  6. | {
  7. [key: string]: T;
  8. };
  9. export interface ReadOnlyObjMap<T> {
  10. readonly [key: string]: T;
  11. }
  12. export declare type ReadOnlyObjMapLike<T> =
  13. | ReadOnlyObjMap<T>
  14. | {
  15. readonly [key: string]: T;
  16. };