Skip to content

Commit 5c55377

Browse files
authored
Update packages/kit/types/ambient.d.ts
1 parent 4dd8c73 commit 5c55377

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/kit/types/ambient.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@
1515
* ```
1616
*
1717
* By populating these interfaces, you will gain type safety when using `event.locals`, `event.platform`, and `data` from `load` functions.
18-
*
19-
* Note that since it's a declaration file, you have to be careful when using `import` statements. Once you add an `import`
20-
* at the top level, the declaration file is no longer considered ambient, at which point you need to wrap `App` inside `declare global`
21-
* to still be available throughout the app. Opposite to that is the behavior when there's no `import`, at which point having `declare global`
22-
* _prevents_ the `App` types from being available.
23-
* To safe you the headache of converting between the two this we provide a dummy `export` to force the file being a module.
24-
* Do not remove it unless you have an `import` statement at the top level.
2518
*/
2619
declare namespace App {
2720
/**

0 commit comments

Comments
 (0)