@beamf/graphql-schema-typescript
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -78,3 +78,2 @@ "use strict"; | ||
'', | ||
'export type Value<T> = T | Promise<T>', | ||
'/**', | ||
@@ -89,5 +88,5 @@ ' * Technically a property can be a function also. We DO NOT support this use case', | ||
' */', | ||
'export type GQLProperty<T, Args, Ctx> = Value<T | null> // | ((args: Args, context: Ctx, info: GraphQLResolveInfo) => Value<T>)', | ||
'export type GQLProperty<T, Args, Ctx> = T | Promise<T> // | ((args: Args, context: Ctx, info: GraphQLResolveInfo) => T | Promise<T>)', | ||
'', | ||
'export type GQLResolver<T, P, Args, Ctx> = (parent: P, args: Args, context: Ctx, info: GraphQLResolveInfo) => Value<T>', | ||
'export type GQLResolver<T, P, Args, Ctx> = (parent: P, args: Args, context: Ctx, info: GraphQLResolveInfo) => T | Promise<T>', | ||
'/**', | ||
@@ -94,0 +93,0 @@ ' * When used as properties of the return value of an existing resolver, this really should be', |
{ | ||
"name": "@beamf/graphql-schema-typescript", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Generate TypeScript from GraphQL's schema type definitions", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
232476
6414