Skip to content

Commit

Permalink
Update graphql-lib to 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tajakobsen committed Nov 7, 2022
1 parent 019bb02 commit 320cfd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

8 changes: 3 additions & 5 deletions packages/graphql/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,10 @@ export interface CreateEnumTypeParams {
readonly description?: string;
}

type ISGraphQLString<T> = T extends GraphQLString ? string : T extends GraphQLInt ? number : never;

export interface GraphQLResolver {
type: ReturnType<this["resolve"]>;
export interface GraphQLResolver<ExecuteContext = EmptyObject, Source = any> {
type: GraphQLType;
args?: Record<string, GraphQLType>;
resolve: (env: GraphQLResolverEnvironment) => unknown;
resolve?: (env: GraphQLResolverEnvironment) => unknown;
}

export interface GraphQLResolverEnvironment<Source = any, Context = EmptyObject> {
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@item-enonic-types/lib-graphql",
"sideEffects": false,
"version": "2.0.1",
"version": "2.0.2",
"description": "TypeScript types for Enonic XP library lib-graphql",
"typings": "index.d.ts",
"files": [
Expand Down

0 comments on commit 320cfd4

Please sign in to comment.