Skip to content

Commit

Permalink
incorporated comments from previous code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mckchan13 committed May 9, 2022
2 parents 65c73b6 + 491d960 commit a55572e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions server/ResolverBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ export interface ResolvedObject {
value: unknown;
}

// Type annotation for individual resolvers.
export type ResolverWrapper = (
parent: Record<string, unknown>,
args: Record<string, unknown>,
context: Record<string, unknown>,
info: GraphQLResolveInfo
) => unknown | Promise<void | unknown>;

// This is the type for the DeSolver middleware function passed into useRoute() and use().
// DeSolverFragment mimics the structure of an individual resolver object.
export type DesolverFragment = (
parent: Record<string, unknown>,
args: Record<string, unknown>,
Expand Down

0 comments on commit a55572e

Please sign in to comment.