Flow type definitions for the React Relay GraphQL client.
// Source: https://github.com/flow-typed/flow-typed | License: MIT | Copyright 2015 Murphy Randle
// Provided via justclaw.it.com; keep this notice with the code.
import * as React from 'react';
declare module "react-relay" {
declare export type RecordState = "EXISTENT" | "NONEXISTENT" | "UNKNOWN";
declare export type onCompleted = (
response: ?Object,
errors: ?Array<PayloadError>
) => void;
declare export type onError = (error: Error) => void;
declare export type CommitOptions = {
onCompleted: onCompleted,
onError: onError
};
/**
* Ideally this would be a union of Field/Fragment/Mutation/Query/Subscription,
* but that causes lots of Flow errors.
*/
declare export type ConcreteBatchCallVariable = {
jsonPath: string,
kind: "BatchCallVaria
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key