Skip to content

Commit 4d8ce93

Browse files
authored
update discloseVersion docs (#10300)
* update discloseVersion docs * regenerate types --------- Co-authored-by: Rich Harris <[email protected]>
1 parent af5204a commit 4d8ce93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/svelte/src/compiler/interfaces.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export interface CompileOptions {
345345
*/
346346
preserveWhitespace?: boolean;
347347
/**
348-
* If `true`, exposes the Svelte major version on the global `window` object in the browser.
348+
* If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
349349
*
350350
* @default true
351351
*/

packages/svelte/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ declare module 'svelte/compiler' {
602602
*/
603603
preserveWhitespace?: boolean;
604604
/**
605-
* If `true`, exposes the Svelte major version on the global `window` object in the browser.
605+
* If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
606606
*
607607
* @default true
608608
*/
@@ -1211,7 +1211,7 @@ declare module 'svelte/types/compiler/interfaces' {
12111211
*/
12121212
preserveWhitespace?: boolean;
12131213
/**
1214-
* If `true`, exposes the Svelte major version on the global `window` object in the browser.
1214+
* If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
12151215
*
12161216
* @default true
12171217
*/

0 commit comments

Comments
 (0)