Skip to content

Commit 689b987

Browse files
committed
use GraphQLFieldResolver
1 parent b258b67 commit 689b987

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { Hook, HookContext, Params, Query, Paginated, Application } from '@feathersjs/feathers';
44
import * as ajv from 'ajv';
5-
import { GraphQLSchema, parse } from 'graphql';
5+
import { GraphQLSchema, parse, GraphQLFieldResolver } from 'graphql';
66
import * as libphonenumberjs from 'libphonenumber-js';
77

88
export type HookType = 'before' | 'after' | 'error';
@@ -216,10 +216,10 @@ export type FGraphQLResolverMapFactory = (app: Application, runtime: any) => FGr
216216

217217
export interface FGraphQLResolverMap {
218218
[i: string]: {
219-
[i: string]: (parent: any, args: any, content: any, ast: any) => any;
219+
[i: string]: GraphQLFieldResolver<any, any>
220220
};
221221
Query: {
222-
[i: string]: (parent: any, args: any, content: any, ast: any) => any;
222+
[i: string]: GraphQLFieldResolver<any, any>
223223
};
224224
}
225225

0 commit comments

Comments
 (0)