symbols.js.flow 882 B

1234567891011121314151617
  1. // @flow strict
  2. // In ES2015 (or a polyfilled) environment, this will be Symbol.iterator
  3. // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
  4. export const SYMBOL_ITERATOR: string =
  5. typeof Symbol === 'function' ? Symbol.iterator : '@@iterator';
  6. // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator
  7. // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
  8. export const SYMBOL_ASYNC_ITERATOR: string =
  9. // $FlowFixMe Flow doesn't define `Symbol.asyncIterator` yet
  10. typeof Symbol === 'function' ? Symbol.asyncIterator : '@@asyncIterator';
  11. // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
  12. export const SYMBOL_TO_STRING_TAG: string =
  13. // $FlowFixMe Flow doesn't define `Symbol.toStringTag` yet
  14. typeof Symbol === 'function' ? Symbol.toStringTag : '@@toStringTag';