-
-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(types): update
TypeResolver
interface
- Loading branch information
1 parent
a894dd2
commit e32a34f
Showing
3 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { GraphQLResolveInfo } from "graphql"; | ||
import { GraphQLTypeResolver } from "graphql"; | ||
|
||
import { ClassType } from "./ClassType"; | ||
import { MaybePromise, Maybe } from "./Maybe"; | ||
|
||
export type TypeResolver<TSource, TContext> = ( | ||
value: TSource, | ||
context: TContext, | ||
info: GraphQLResolveInfo, | ||
...args: Parameters<GraphQLTypeResolver<TSource, TContext>> | ||
) => MaybePromise<Maybe<string | ClassType>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters