Skip to content

Commit 821a213

Browse files
authored
docs: add details to discloseVersion (#10274)
1 parent 005ff89 commit 821a213

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/svelte/src/compiler/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export interface CompileOptions extends ModuleCompileOptions {
142142
*/
143143
runes?: boolean | undefined;
144144
/**
145-
* If `true`, exposes the Svelte major version on the global `window` object in the browser.
145+
* If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
146146
*
147147
* @default true
148148
*/

packages/svelte/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ declare module 'svelte/compiler' {
639639
*/
640640
runes?: boolean | undefined;
641641
/**
642-
* If `true`, exposes the Svelte major version on the global `window` object in the browser.
642+
* If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
643643
*
644644
* @default true
645645
*/
@@ -2329,7 +2329,7 @@ declare module 'svelte/types/compiler/interfaces' {
23292329
*/
23302330
runes?: boolean | undefined;
23312331
/**
2332-
* If `true`, exposes the Svelte major version on the global `window` object in the browser.
2332+
* If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
23332333
*
23342334
* @default true
23352335
*/

0 commit comments

Comments
 (0)