-
-
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.
* adapter types * rename ambient.d.ts -> placeholders.d.ts * add ambient types to adapter-cloudflare-workers * update README * import ambient types * changeset
- Loading branch information
1 parent
c8c8afc
commit 10f2105
Showing
14 changed files
with
106 additions
and
45 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-cloudflare': patch | ||
'@sveltejs/adapter-cloudflare-workers': patch | ||
--- | ||
|
||
Expose App interfaces |
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,15 +1,10 @@ | ||
declare module 'SERVER' { | ||
export { Server } from '@sveltejs/kit'; | ||
} | ||
|
||
declare module 'MANIFEST' { | ||
import { SSRManifest } from '@sveltejs/kit'; | ||
|
||
export const manifest: SSRManifest; | ||
export const prerendered: Map<string, { file: string }>; | ||
} | ||
/// <reference types="@cloudflare/workers-types" /> | ||
|
||
declare module '__STATIC_CONTENT_MANIFEST' { | ||
const json: string; | ||
export default json; | ||
declare namespace App { | ||
export interface Platform { | ||
context?: { | ||
waitUntil(promise: Promise<any>): void; | ||
}; | ||
caches?: CacheStorage & { default: Cache }; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
declare module 'SERVER' { | ||
export { Server } from '@sveltejs/kit'; | ||
} | ||
|
||
declare module 'MANIFEST' { | ||
import { SSRManifest } from '@sveltejs/kit'; | ||
|
||
export const manifest: SSRManifest; | ||
export const prerendered: Map<string, { file: string }>; | ||
} | ||
|
||
declare module '__STATIC_CONTENT_MANIFEST' { | ||
const json: string; | ||
export default json; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
declare module 'SERVER' { | ||
export { Server } from '@sveltejs/kit'; | ||
} | ||
|
||
declare module 'MANIFEST' { | ||
import { SSRManifest } from '@sveltejs/kit'; | ||
/// <reference types="@cloudflare/workers-types" /> | ||
|
||
export const manifest: SSRManifest; | ||
export const prerendered: Set<string>; | ||
declare namespace App { | ||
export interface Platform { | ||
context?: { | ||
waitUntil(promise: Promise<any>): void; | ||
}; | ||
caches?: CacheStorage & { default: Cache }; | ||
} | ||
} |
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,3 +1,4 @@ | ||
import { Adapter } from '@sveltejs/kit'; | ||
import './ambient.js'; | ||
|
||
export default function plugin(): Adapter; |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
declare module 'SERVER' { | ||
export { Server } from '@sveltejs/kit'; | ||
} | ||
|
||
declare module 'MANIFEST' { | ||
import { SSRManifest } from '@sveltejs/kit'; | ||
|
||
export const manifest: SSRManifest; | ||
export const prerendered: Set<string>; | ||
} |
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,3 +1,4 @@ | ||
import { Adapter } from '@sveltejs/kit'; | ||
import './ambient.js'; | ||
|
||
export default function plugin(opts?: { split?: boolean; edge?: boolean }): Adapter; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.