From 320cfd41b5de9170c4866b08a9e9428bf461eef9 Mon Sep 17 00:00:00 2001 From: Tom Arild Jakobsen Date: Mon, 7 Nov 2022 11:00:31 +0100 Subject: [PATCH] Update graphql-lib to 2.0.2 --- package-lock.json | 2 +- packages/graphql/index.d.ts | 8 +++----- packages/graphql/package.json | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index e0f5ca9..7adb64e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2922,7 +2922,7 @@ }, "packages/graphql": { "name": "@item-enonic-types/lib-graphql", - "version": "2.0.1", + "version": "2.0.2", "license": "MIT" }, "packages/graphql-playground": { diff --git a/packages/graphql/index.d.ts b/packages/graphql/index.d.ts index 92a0ec5..6d5b63a 100644 --- a/packages/graphql/index.d.ts +++ b/packages/graphql/index.d.ts @@ -202,12 +202,10 @@ export interface CreateEnumTypeParams { readonly description?: string; } -type ISGraphQLString = T extends GraphQLString ? string : T extends GraphQLInt ? number : never; - -export interface GraphQLResolver { - type: ReturnType; +export interface GraphQLResolver { + type: GraphQLType; args?: Record; - resolve: (env: GraphQLResolverEnvironment) => unknown; + resolve?: (env: GraphQLResolverEnvironment) => unknown; } export interface GraphQLResolverEnvironment { diff --git a/packages/graphql/package.json b/packages/graphql/package.json index 4103831..cfb6d34 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -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": [