From 4d8ce93d2e65b93ed8810b1500c15808cb13d86a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 25 Jan 2024 19:35:50 -0500 Subject: [PATCH] update discloseVersion docs (#10300) * update discloseVersion docs * regenerate types --------- Co-authored-by: Rich Harris --- packages/svelte/src/compiler/interfaces.d.ts | 2 +- packages/svelte/types/index.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/svelte/src/compiler/interfaces.d.ts b/packages/svelte/src/compiler/interfaces.d.ts index 64be9698f5b3..4d72cd309a1c 100644 --- a/packages/svelte/src/compiler/interfaces.d.ts +++ b/packages/svelte/src/compiler/interfaces.d.ts @@ -345,7 +345,7 @@ export interface CompileOptions { */ preserveWhitespace?: boolean; /** - * If `true`, exposes the Svelte major version on the global `window` object in the browser. + * If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`. * * @default true */ diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index accdab2eca88..e32a98256c56 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -602,7 +602,7 @@ declare module 'svelte/compiler' { */ preserveWhitespace?: boolean; /** - * If `true`, exposes the Svelte major version on the global `window` object in the browser. + * If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`. * * @default true */ @@ -1211,7 +1211,7 @@ declare module 'svelte/types/compiler/interfaces' { */ preserveWhitespace?: boolean; /** - * If `true`, exposes the Svelte major version on the global `window` object in the browser. + * If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`. * * @default true */