graphql-relay-ts-typings
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -12,2 +12,6 @@ declare module "graphql-relay" { | ||
GraphQLString, | ||
GraphQLInterfaceType | ||
} from "graphql"; | ||
import { | ||
GraphQLFieldConfig, | ||
@@ -18,6 +22,5 @@ InputObjectConfigFieldMap, | ||
GraphQLResolveInfo, | ||
GraphQLInterfaceType, | ||
GraphQLInputType, | ||
GraphQLOutputType | ||
} from "graphql"; | ||
} from "graphql/type/definition"; | ||
@@ -33,4 +36,4 @@ export var forwardConnectionArgs: GraphQLFieldConfigArgumentMap; | ||
resolveCursor?: Function, | ||
edgeFields?: (() => GraphQLFieldConfigMap) | GraphQLFieldConfigMap, | ||
connectionFields?: (() => GraphQLFieldConfigMap) | GraphQLFieldConfigMap | ||
edgeFields?: (() => GraphQLFieldConfigMap<any>) | GraphQLFieldConfigMap<any>, | ||
connectionFields?: (() => GraphQLFieldConfigMap<any>) | GraphQLFieldConfigMap<any> | ||
}; | ||
@@ -172,4 +175,4 @@ | ||
type mutationFn = ((Object, GraphQLResolveInfo) => Object) | | ||
((Object, GraphQLResolveInfo) => Promise<Object>); | ||
type mutationFn = ((Object: any, GraphQLResolveInfo: any) => Object) | | ||
((Object: any, GraphQLResolveInfo: any) => Promise<Object>); | ||
@@ -179,3 +182,3 @@ type MutationConfig = { | ||
inputFields: InputObjectConfigFieldMap, | ||
outputFields: GraphQLFieldConfigMap, | ||
outputFields: GraphQLFieldConfigMap<any>, | ||
mutateAndGetPayload: mutationFn | ||
@@ -186,3 +189,3 @@ }; | ||
config: MutationConfig | ||
): GraphQLFieldConfig; | ||
): GraphQLFieldConfig<any>; | ||
@@ -193,7 +196,7 @@ // node/node.js | ||
nodeInterface: GraphQLInterfaceType, | ||
nodeField: GraphQLFieldConfig | ||
nodeField: GraphQLFieldConfig<any> | ||
}; | ||
type typeResolverFn = ((any) => GraphQLObjectType) | | ||
((any) => Promise<GraphQLObjectType>); | ||
type typeResolverFn = ((v: any) => GraphQLObjectType) | | ||
((v: any) => Promise<GraphQLObjectType>); | ||
@@ -241,3 +244,3 @@ /** | ||
idFetcher?: (object: any, info: GraphQLResolveInfo) => string | ||
): GraphQLFieldConfig; | ||
): GraphQLFieldConfig<any>; | ||
@@ -258,4 +261,4 @@ | ||
config: PluralIdentifyingRootFieldConfig | ||
): GraphQLFieldConfig; | ||
): GraphQLFieldConfig<any>; | ||
} |
{ | ||
"name": "graphql-relay-ts-typings", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Typescript definitions for graphql-relay", | ||
@@ -5,0 +5,0 @@ "main": "graphql-relay.d.ts", |
8085
224