summaryrefslogtreecommitdiff
path: root/school/node_modules/graphql/jsutils/ObjMap.js.flow
blob: a37d728be9418876cad76ef11158beb3d0c83707 (plain)
1
2
3
4
5
6
7
8
// @flow strict
export type ObjMap<T> = { [key: string]: T, __proto__: null, ... };
export type ObjMapLike<T> = ObjMap<T> | { [key: string]: T, ... };

export type ReadOnlyObjMap<T> = { +[key: string]: T, __proto__: null, ... };
export type ReadOnlyObjMapLike<T> =
  | ReadOnlyObjMap<T>
  | { +[key: string]: T, ... };