UNPKG

@energica-city/shared-amplify-utils

Version:

Shared utilities for AWS Amplify projects

10 lines 766 B
import type { Middleware } from '../middlewareChain'; import type { GraphQLInputWithModels, GraphQLHandlerReturn } from './types'; import type { AmplifyModelType } from '../../queries/types'; export interface GraphQLErrorHandlerConfig { includeStackTrace?: boolean; defaultContext?: Record<string, unknown>; forceStructuredLogging?: boolean; } export declare function createGraphQLErrorHandler<TTypes extends Record<string, AmplifyModelType> = Record<string, AmplifyModelType>, TSelected extends keyof TTypes & string = keyof TTypes & string, TReturn extends GraphQLHandlerReturn = GraphQLHandlerReturn>(config?: GraphQLErrorHandlerConfig): Middleware<GraphQLInputWithModels<TTypes, TSelected>, TReturn>; //# sourceMappingURL=GraphQLErrorHandler.d.ts.map