Swap-Aggregator-Subgraph/node_modules/graphql/polyfills/objectValues.js.flow
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

11 lines
377 B
Plaintext

// @flow strict
import type { ObjMap } from '../jsutils/ObjMap';
declare function objectValues<T>(obj: ObjMap<T>): Array<T>;
/* eslint-disable no-redeclare */
// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
const objectValues =
Object.values || ((obj) => Object.keys(obj).map((key) => obj[key]));
export default objectValues;