@davidyaha/graphql-birdseye
Version:
graphql visualizer
48 lines (47 loc) • 2 kB
TypeScript
import * as React from "react";
import { Theme } from "./defaultTheme";
import { IntrospectionQuery } from "graphql/utilities/introspectionQuery";
import { GraphQLSchema } from "graphql/type/schema";
export interface GraphqlBirdseyeProps {
schema: GraphQLSchema | null;
theme?: Theme;
style?: any;
}
export interface State {
activeType: string;
loading: boolean;
}
export interface SchemaProviderProps {
introspectionQuery?: IntrospectionQuery;
schema?: GraphQLSchema;
}
declare const _default: {
new (props: Readonly<GraphqlBirdseyeProps & SchemaProviderProps>): {
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<GraphqlBirdseyeProps & SchemaProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<GraphqlBirdseyeProps & SchemaProviderProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
};
new (props: GraphqlBirdseyeProps & SchemaProviderProps, context?: any): {
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<GraphqlBirdseyeProps & SchemaProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<GraphqlBirdseyeProps & SchemaProviderProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
};
contextType?: React.Context<any> | undefined;
};
export default _default;