MCPcopy
hub / github.com/graphql/graphiql / Params

Interface Params

packages/graphiql/src/e2e.ts:19–29  ·  view source on GitHub ↗

* UMD GraphiQL Example * * This is a simple example that provides a primitive query string parser on top of GraphiQL props * It assumes a global umd GraphiQL, which would be provided by an index.html in the default example * * It is used by: * - the netlify demo * - end-to-end tests * - vite

Source from the content-addressed store, hash-verified

17 */
18
19interface Params {
20 query?: string;
21 variables?: string;
22 headers?: string;
23 confirmCloseTab?: 'true';
24 onPrettifyQuery?: 'true';
25 forcedTheme?: 'light' | 'dark' | 'system';
26 defaultQuery?: string;
27 defaultTheme?: Theme;
28 defaultHeaders?: string;
29}
30
31// Parse the search string to get url parameters.
32const parameters: Params = Object.fromEntries(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected