repo_description: The industry-leading GraphQL client for TypeScript, JavaScript, React, Vue, Angular, and more. Apollo Client delivers powerful caching, intuitive APIs, and comprehensive developer tools to accelerate your app development.
repo_topics: apollo-client apollographql graphql graphql-client typescript
code: import type { ErrorCodes } from "../invariantErrorCodes.js";
  import { version } from "../version.js";
  
  // This is duplicated between `@apollo/client/dev` and `@apollo/client/utilities/invariant` to prevent circular references.
  export const ApolloErrorMessageHandler = Symbol.for(
    "ApolloErrorMessageHandler_" + version
  );
  declare global {
    interface Window {
      [ApolloErrorMessageHandler]?: {
        (message: string | number, args: string[]): string | undefined;
      } & ErrorCodes;
    }
  }
  