@beamf/graphql-schema-typescript
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -83,5 +83,5 @@ "use strict"; | ||
' */', | ||
'export type GQLProperty<T, Args, Ctx> = Value<T | null> | ((args: Args, context: Ctx, info: GraphQLResolveInfo) => Value<T>)', | ||
'export type GQLProperty<T, Args, Ctx> = Value<T | null> // | ((args: Args, context: Ctx, info: GraphQLResolveInfo) => Value<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) => Value<T>', | ||
'/**', | ||
@@ -235,3 +235,3 @@ ' * When used as properties of the return value of an existing resolver, this really should be', | ||
fieldResolversTypeDefs.push.apply(fieldResolversTypeDefs, fieldJsDocs.concat([ | ||
"export type " + fieldResolverName + "<P> = GQLPropertyOrResolver<" + typeName + ", P, " + argsType + ", " + this.contextType + ">", | ||
"export type " + fieldResolverName + "<P = {}> = GQLPropertyOrResolver<" + typeName + ", P, " + argsType + ", " + this.contextType + ">", | ||
])); | ||
@@ -238,0 +238,0 @@ typeResolverBody.push.apply(typeResolverBody, [field.name + "?: " + fieldResolverName + "<P>"]); |
{ | ||
"name": "@beamf/graphql-schema-typescript", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Generate TypeScript from GraphQL's schema type definitions", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
227636