Skip to content

Commit

Permalink
fix: exposes graphqlBatchHTTPWrapper typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dzucconi authored and nodkz committed Sep 3, 2020
1 parent 13937e2 commit 754bce7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,6 @@ export class RRNLRequestError extends RRNLError {

export function createRequestError(request: RelayRequestAny, response?: RelayResponse): RRNLRequestError;
export function formatGraphQLErrors(request: RelayRequest, errors: GraphQLResponseErrors): string;

type ExpressMiddleware = (req: any, res: any) => any;
export function graphqlBatchHTTPWrapper(middleware: ExpressMiddleware): ExpressMiddleware;

0 comments on commit 754bce7

Please sign in to comment.