Files
talk/src/types/relay-local-schema.d.ts
T
2018-07-06 21:19:49 -03:00

17 lines
420 B
TypeScript

declare module "relay-local-schema" {
import { GraphQLSchema } from "graphql";
import { Network as RelayNetwork, FetchFunction } from "relay-runtime";
interface CreateArguments {
schema: GraphQLSchema;
rootValue?: any;
contextValue?: any;
}
export class Network {
static create(data: CreateArguments): RelayNetwork;
}
export function createFetch(data: CreateArguments): FetchFunction;
}