UNPKG

1.19 kBTypeScriptView Raw
1import { CursorShape, RenderPageOptions as PlaygroundRenderPageOptions, Theme } from '@apollographql/graphql-playground-html/dist/render-playground-page';
2export { RenderPageOptions as PlaygroundRenderPageOptions, } from '@apollographql/graphql-playground-html/dist/render-playground-page';
3declare type RecursivePartial<T> = {
4 [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends (object | undefined) ? RecursivePartial<T[P]> : T[P];
5};
6export declare type PlaygroundConfig = RecursivePartial<PlaygroundRenderPageOptions> | boolean;
7export declare const defaultPlaygroundOptions: {
8 version: string;
9 settings: {
10 'general.betaUpdates': boolean;
11 'editor.theme': Theme;
12 'editor.cursorShape': CursorShape;
13 'editor.reuseHeaders': boolean;
14 'tracing.hideTracingResponse': boolean;
15 'queryPlan.hideQueryPlanResponse': boolean;
16 'editor.fontSize': number;
17 'editor.fontFamily': string;
18 'request.credentials': string;
19 };
20};
21export declare function createPlaygroundOptions(playground?: PlaygroundConfig): PlaygroundRenderPageOptions | undefined;
22//# sourceMappingURL=playground.d.ts.map
\No newline at end of file