playground.d.ts 1.2 KB

12345678910111213141516171819202122
  1. import { CursorShape, RenderPageOptions as PlaygroundRenderPageOptions, Theme } from '@apollographql/graphql-playground-html/dist/render-playground-page';
  2. export { RenderPageOptions as PlaygroundRenderPageOptions, } from '@apollographql/graphql-playground-html/dist/render-playground-page';
  3. declare 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. };
  6. export declare type PlaygroundConfig = RecursivePartial<PlaygroundRenderPageOptions> | boolean;
  7. export 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. };
  21. export declare function createPlaygroundOptions(playground?: PlaygroundConfig): PlaygroundRenderPageOptions | undefined;
  22. //# sourceMappingURL=playground.d.ts.map