mirror of
https://github.com/wassname/talk.git
synced 2026-08-05 13:30:26 +08:00
17 lines
420 B
TypeScript
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;
|
|
}
|