File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
196195export {}
197196```
198197
Original file line number Diff line number Diff 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
569568export {}
570569```
571570
Original file line number Diff line number Diff 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
576575export {}
577576```
578577
You can’t perform that action at this time.
0 commit comments