Skip to content

Commit 0ca5939

Browse files
committed
docs: polish
1 parent dd59a60 commit 0ca5939

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

docs/pages/globalContext/+Page.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ declare global {
190190
}
191191
}
192192

193-
// If you define Vike.GlobalContext in a .d.ts file then
194-
// make sure there is at least one export/import statement.
195-
// Tell TypeScript this file isn't an ambient module:
193+
// Add this line if TypeScript complains about `declare global`.
194+
// https://typescriptlang.org/docs/handbook/2/modules.html#how-javascript-modules-are-defined
196195
export {}
197196
```
198197

docs/pages/meta/+Page.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,8 @@ declare global {
563563
}
564564
}
565565

566-
// The following isn't needed in this example, but if you define Vike.Config
567-
// in a .d.ts file then make sure there is at least one export/import statement.
568-
// Tell TypeScript this file isn't an ambient module:
566+
// Add this line if TypeScript complains about `declare global`.
567+
// https://typescriptlang.org/docs/handbook/2/modules.html#how-javascript-modules-are-defined
569568
export {}
570569
```
571570

docs/pages/pageContext/+Page.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,8 @@ declare global {
570570
}
571571
}
572572

573-
// If you define Vike.PageContext in a .d.ts file then
574-
// make sure there is at least one export/import statement.
575-
// Tell TypeScript this file isn't an ambient module:
573+
// Add this line if TypeScript complains about `declare global`.
574+
// https://typescriptlang.org/docs/handbook/2/modules.html#how-javascript-modules-are-defined
576575
export {}
577576
```
578577

0 commit comments

Comments
 (0)