simple-graphql
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -76,5 +76,5 @@ import { GraphQLFieldResolver, GraphQLInputType, GraphQLInterfaceType, GraphQLOutputType, GraphQLResolveInfo } from 'graphql'; | ||
}, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any; | ||
export declare type SGRootResolve = (args: { | ||
export declare type SGRootResolve<T = any> = (args: { | ||
[key: string]: any; | ||
}, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any; | ||
}, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => T; | ||
export declare type SGTypeConfig = { | ||
@@ -92,7 +92,7 @@ name: string; | ||
}; | ||
export declare type SGOutputFieldTypeMetadata = SGFieldTypeMetadata & { | ||
export declare type SGOutputFieldTypeMetadata<T = any> = SGFieldTypeMetadata & { | ||
hookOptions?: SGHookOptionsMap; | ||
graphql?: { | ||
hidden?: boolean; | ||
resolve?: SGFieldResolve; | ||
resolve?: SGFieldResolve<T>; | ||
dependentFields?: Array<string>; | ||
@@ -176,5 +176,5 @@ input?: SGInputFieldConfigMap; | ||
}; | ||
export declare type SGOutputFieldConfig = SGFieldTypeDefinition<SGOutputFieldTypeMetadata>; | ||
export declare type SGOutputFieldConfigMap = { | ||
[key: string]: SGOutputFieldConfig; | ||
export declare type SGOutputFieldConfig<T = any> = SGFieldTypeDefinition<SGOutputFieldTypeMetadata<T>>; | ||
export declare type SGOutputFieldConfigMap<T = any> = { | ||
[key: string]: SGOutputFieldConfig<T>; | ||
}; | ||
@@ -215,8 +215,8 @@ export declare type SGLinkedFieldConfig = { | ||
}; | ||
export declare type SGQueryConfig = { | ||
export declare type SGQueryConfig<T = any> = { | ||
description?: string; | ||
hookOptions?: SGHookOptionsMap; | ||
input?: SGInputFieldConfigMap; | ||
output: SGOutputFieldConfig; | ||
resolve: SGRootResolve; | ||
output: SGOutputFieldConfig<T>; | ||
resolve: SGRootResolve<T>; | ||
}; | ||
@@ -226,8 +226,8 @@ export declare type SGQueryConfigMap = { | ||
}; | ||
export declare type SGMutationConfig = { | ||
export declare type SGMutationConfig<T = any> = { | ||
description?: string; | ||
hookOptions?: SGHookOptionsMap; | ||
input: SGInputFieldConfigMap; | ||
output: SGOutputFieldConfigMap; | ||
mutateAndGetPayload: SGRootResolve; | ||
output: SGOutputFieldConfigMap<T>; | ||
mutateAndGetPayload: SGRootResolve<T>; | ||
}; | ||
@@ -234,0 +234,0 @@ export declare type SGMutationConfigMap = { |
@@ -5,4 +5,4 @@ import { GraphQLFieldConfigMap } from 'graphql'; | ||
declare const toGraphQLFieldConfigMap: (name: string, postfix: string, fields: { | ||
[id: string]: SGOutputFieldConfig; | ||
[id: string]: SGOutputFieldConfig<any>; | ||
}, context: Context) => GraphQLFieldConfigMap<any, any>; | ||
export default toGraphQLFieldConfigMap; |
{ | ||
"name": "simple-graphql", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
339082