@forge/cli-shared
9.7.0-next.15-experimental-554d4179.7.0-next.14-experimental-fd0ebbc
out/graphql/get-mutation-error.d.ts~
out/graphql/get-mutation-error.d.tsModified+11−2
Index: package/out/graphql/get-mutation-error.d.ts
===================================================================
--- package/out/graphql/get-mutation-error.d.ts
+++ package/out/graphql/get-mutation-error.d.ts
@@ -1,6 +1,15 @@
-import { Maybe, MutationError } from './graphql-types';
-export declare function getError(errors: Maybe<MutationError[]> | undefined): {
+export type MutationErrorExtension = {
+ errorType?: string | null;
+ statusCode?: number | null;
+};
+export type MutationError = {
+ __typename?: 'MutationError';
+ extensions?: MutationErrorExtension | null;
+ message?: string | null;
+};
+export declare function requireMutationPayload<T>(value: T | null | undefined, requestId?: string): NonNullable<T>;
+export declare function getError(errors: MutationError[] | null | undefined): {
code: string | undefined;
message: string | undefined;
statusCode: number | undefined;
};