-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly include ambient types from vercel/node adapter (#12088)
closes #12433
- Loading branch information
1 parent
6774ebc
commit 9bea757
Showing
13 changed files
with
43 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@sveltejs/adapter-vercel": patch | ||
"@sveltejs/adapter-node": patch | ||
--- | ||
|
||
fix: include ambient type declarations |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import { Adapter } from '@sveltejs/kit'; | ||
import './ambient.js'; | ||
|
||
export default function plugin(opts?: { split?: boolean; edge?: boolean }): Adapter; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,12 @@ | ||
declare module 'ENV' { | ||
export function env(key: string, fallback?: any): string; | ||
} | ||
|
||
declare module 'HANDLER' { | ||
export const handler: import('polka').Middleware; | ||
} | ||
|
||
declare module 'MANIFEST' { | ||
import { SSRManifest } from '@sveltejs/kit'; | ||
|
||
export const base: string; | ||
export const manifest: SSRManifest; | ||
export const prerendered: Set<string>; | ||
} | ||
|
||
declare module 'SERVER' { | ||
export { Server } from '@sveltejs/kit'; | ||
} | ||
|
||
declare namespace App { | ||
export interface Platform { | ||
/** | ||
* The original Node request object (https://nodejs.org/api/http.html#class-httpincomingmessage) | ||
*/ | ||
req: import('http').IncomingMessage; | ||
import http from 'node:http'; | ||
|
||
declare global { | ||
namespace App { | ||
export interface Platform { | ||
/** | ||
* The original Node request object (https://nodejs.org/api/http.html#class-httpincomingmessage) | ||
*/ | ||
req: http.IncomingMessage; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
declare module 'ENV' { | ||
export function env(key: string, fallback?: any): string; | ||
} | ||
|
||
declare module 'HANDLER' { | ||
export const handler: import('polka').Middleware; | ||
} | ||
|
||
declare module 'MANIFEST' { | ||
import { SSRManifest } from '@sveltejs/kit'; | ||
|
||
export const base: string; | ||
export const manifest: SSRManifest; | ||
export const prerendered: Set<string>; | ||
} | ||
|
||
declare module 'SERVER' { | ||
export { Server } from '@sveltejs/kit'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters