@@ -390,18 +390,47 @@ type CombineByTypeName<T extends {
390390 [TypeName in NonNullable <T [" __typename" ]>]: Prettify <MergeUnions <ExtractByMatchingTypeNames <T , TypeName >>>;
391391}[NonNullable <T [" __typename" ]>];
392392
393+ // @public (undocumented)
394+ export namespace CombinedGraphQLErrors {
395+ // (undocumented)
396+ export type MessageFormatter = (errors : ReadonlyArray <GraphQLFormattedError >, options : MessageFormatterOptions ) => string ;
397+ // (undocumented)
398+ export interface MessageFormatterOptions {
399+ // (undocumented)
400+ defaultFormatMessage: (errors : ReadonlyArray <GraphQLFormattedError >) => string ;
401+ // (undocumented)
402+ result: FetchResult <unknown >;
403+ }
404+ }
405+
393406// @public
394407export class CombinedGraphQLErrors extends Error {
395408 constructor (result : FetchResult <unknown >);
396409 readonly data: Record <string , unknown > | null | undefined ;
397410 readonly errors: ReadonlyArray <GraphQLFormattedError >;
411+ static formatMessage: CombinedGraphQLErrors .MessageFormatter ;
412+ static is(error : unknown ): error is CombinedGraphQLErrors ;
413+ }
414+
415+ // @public (undocumented)
416+ export namespace CombinedProtocolErrors {
417+ // (undocumented)
418+ export type MessageFormatter = (errors : ReadonlyArray <GraphQLFormattedError >, options : MessageFormatterOptions ) => string ;
419+ // (undocumented)
420+ export interface MessageFormatterOptions {
421+ // (undocumented)
422+ defaultFormatMessage: (errors : ReadonlyArray <GraphQLFormattedError >) => string ;
423+ }
398424}
399425
400426// @public
401427export class CombinedProtocolErrors extends Error {
402428 constructor (protocolErrors : Array <GraphQLFormattedError > | ReadonlyArray <GraphQLFormattedError >);
403429 // (undocumented)
404430 errors: ReadonlyArray <GraphQLFormattedError >;
431+ // (undocumented)
432+ static formatMessage: CombinedProtocolErrors .MessageFormatter ;
433+ static is(error : unknown ): error is CombinedProtocolErrors ;
405434}
406435
407436// Warning: (ae-forgotten-export) The symbol "CombineByTypeName" needs to be exported by the entry point index.d.ts
@@ -2154,6 +2183,7 @@ export const serializeFetchParameter: (p: any, label: string) => string;
21542183export class ServerError extends Error {
21552184 // Warning: (ae-forgotten-export) The symbol "ServerErrorOptions" needs to be exported by the entry point index.d.ts
21562185 constructor (message : string , options : ServerErrorOptions );
2186+ static is(error : unknown ): error is ServerError ;
21572187 response: Response ;
21582188 result: Record <string , any > | string ;
21592189 statusCode: number ;
@@ -2172,6 +2202,7 @@ export class ServerParseError extends Error {
21722202 // Warning: (ae-forgotten-export) The symbol "ServerParseErrorOptions" needs to be exported by the entry point index.d.ts
21732203 constructor (originalParseError : unknown , options : ServerParseErrorOptions );
21742204 bodyText: string ;
2205+ static is(error : unknown ): error is ServerParseError ;
21752206 response: Response ;
21762207 statusCode: number ;
21772208}
@@ -2337,6 +2368,7 @@ export type TypePolicy = {
23372368// @public
23382369export class UnconventionalError extends Error {
23392370 constructor (errorType : unknown );
2371+ static is(error : unknown ): error is UnconventionalError ;
23402372}
23412373
23422374// @public (undocumented)
0 commit comments