// @flow strict import type { ExecutionResult } from 'graphql'; export type GraphiQLData = {| query?: string | null, variables?: { +[name: string]: mixed, ... } | null, operationName?: string | null, result?: ExecutionResult, |}; export type GraphiQLOptions = {| /** * An optional GraphQL string to use when no query is provided and no stored * query exists from a previous session. If undefined is provided, GraphiQL * will use its own default query. */ defaultQuery?: string, /** * An optional boolean which enables the header editor when true. * Defaults to false. */ headerEditorEnabled?: boolean, |}; // Ensures string values are safe to be used within a
Loading...
`; }