From 22f0e203623c7f16eee8c85cd047719aec7113ae Mon Sep 17 00:00:00 2001 From: antoniopresto Date: Fri, 12 Aug 2022 13:23:39 -0300 Subject: [PATCH] fix(typings): add shareEnabled option to MiddlewareOptions --- .../graphql-playground-html/src/render-playground-page.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/graphql-playground-html/src/render-playground-page.ts b/packages/graphql-playground-html/src/render-playground-page.ts index 2c904bd2d..e7013e66c 100644 --- a/packages/graphql-playground-html/src/render-playground-page.ts +++ b/packages/graphql-playground-html/src/render-playground-page.ts @@ -3,6 +3,7 @@ import { filterXSS } from 'xss'; import getLoadingMarkup from './get-loading-markup' export interface MiddlewareOptions { + shareEnabled?: boolean; endpoint?: string subscriptionEndpoint?: string workspaceName?: string @@ -95,13 +96,13 @@ const CONFIG_ID = 'playground-config'; const getCdnMarkup = ({ version, cdnUrl = '//cdn.jsdelivr.net/npm', faviconUrl }) => { const buildCDNUrl = (packageName: string, suffix: string) => filter(`${cdnUrl}/${packageName}${version ? `@${version}` : ''}/${suffix}` || '') return ` - ${typeof faviconUrl === 'string' ? `` : ''} ${faviconUrl === undefined ? `` : ''} - `}