Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Merge 68e2f4b into d634e41
Browse files Browse the repository at this point in the history
  • Loading branch information
felixputera committed Apr 6, 2020
2 parents d634e41 + 68e2f4b commit db3dcef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export type OptionsData = {|
* An optional function which will be used to execute instead of default `execute`
* from `graphql-js`.
*/
customExecuteFn?: ?(args: ExecutionArgs) => Promise<ExecutionResult>,
customExecuteFn?: ?(
args: ExecutionArgs,
) => ExecutionResult | Promise<ExecutionResult>,

/**
* An optional function which will be used to format any errors produced by
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ declare namespace graphqlHTTP {
* from `graphql-js`.
*/
customExecuteFn?:
| ((args: ExecutionArgs) => Promise<ExecutionResult>)
| ((args: ExecutionArgs) => ExecutionResult | Promise<ExecutionResult>)
| null;

/**
Expand Down

0 comments on commit db3dcef

Please sign in to comment.