CommonPublicClientOptions: DefaultCommonClientOptions | {
    apiKey: string;
    authMode: "apiKey";
    authToken?: string;
    endpoint: string;
    headers?: CustomHeaders;
} | {
    apiKey?: string;
    authMode: Exclude<GraphQLAuthMode, "apiKey">;
    authToken?: string;
    endpoint: string;
    headers?: CustomHeaders;
}

Common options that can be used on public generateClient() interfaces.

Type declaration

  • apiKey: string
  • authMode: "apiKey"
  • Optional authToken?: string
  • endpoint: string
  • Optional headers?: CustomHeaders

Type declaration