Skip to content

Commit f250c2c

Browse files
committed
regenerate types
1 parent 1cca21c commit f250c2c

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

packages/kit/types/index.d.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ declare module '@sveltejs/kit' {
11591159
* - During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the `text` and `json` methods of the `Response` object. Note that headers will _not_ be serialized, unless explicitly included via [`filterSerializedResponseHeaders`](https://svelte.dev/docs/kit/hooks#Server-hooks-handle)
11601160
* - During hydration, the response will be read from the HTML, guaranteeing consistency and preventing an additional network request.
11611161
*
1162-
* You can learn more about making credentialed requests with cookies [here](https://svelte.dev/docs/kit/load#Cookies)
1162+
* You can learn more about making credentialed requests with cookies [here](https://svelte.dev/docs/kit/load#Cookies).
11631163
*/
11641164
fetch: typeof fetch;
11651165
/**
@@ -1171,23 +1171,23 @@ declare module '@sveltejs/kit' {
11711171
*/
11721172
locals: App.Locals;
11731173
/**
1174-
* The parameters of the current route - e.g. for a route like `/blog/[slug]`, a `{ slug: string }` object
1174+
* The parameters of the current route - e.g. for a route like `/blog/[slug]`, a `{ slug: string }` object.
11751175
*/
11761176
params: Params;
11771177
/**
11781178
* Additional data made available through the adapter.
11791179
*/
11801180
platform: Readonly<App.Platform> | undefined;
11811181
/**
1182-
* The original request object
1182+
* The original request object.
11831183
*/
11841184
request: Request;
11851185
/**
1186-
* Info about the current route
1186+
* Info about the current route.
11871187
*/
11881188
route: {
11891189
/**
1190-
* The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`
1190+
* The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`.
11911191
*/
11921192
id: RouteId;
11931193
};
@@ -1284,15 +1284,16 @@ declare module '@sveltejs/kit' {
12841284
}
12851285

12861286
export interface ServerInitOptions {
1287-
/** A map of environment variables */
1287+
/** A map of environment variables. */
12881288
env: Record<string, string>;
1289-
/** A function that turns an asset filename into a `ReadableStream`. Required for the `read` export from `$app/server` to work */
1289+
/** A function that turns an asset filename into a `ReadableStream`. Required for the `read` export from `$app/server` to work. */
12901290
read?: (file: string) => ReadableStream;
12911291
}
12921292

12931293
export interface SSRManifest {
12941294
appDir: string;
12951295
appPath: string;
1296+
/** Static files from `kit.config.files.assets` and the service worker (if any). */
12961297
assets: Set<string>;
12971298
mimeTypes: Record<string, string>;
12981299

@@ -1303,7 +1304,7 @@ declare module '@sveltejs/kit' {
13031304
routes: SSRRoute[];
13041305
prerendered_routes: Set<string>;
13051306
matchers: () => Promise<Record<string, ParamMatcher>>;
1306-
/** A `[file]: size` map of all assets imported by server code */
1307+
/** A `[file]: size` map of all assets imported by server code. */
13071308
server_assets: Record<string, number>;
13081309
};
13091310
}
@@ -1434,7 +1435,7 @@ declare module '@sveltejs/kit' {
14341435
}
14351436

14361437
/**
1437-
* The object returned by the [`redirect`](https://svelte.dev/docs/kit/@sveltejs-kit#redirect) function
1438+
* The object returned by the [`redirect`](https://svelte.dev/docs/kit/@sveltejs-kit#redirect) function.
14381439
*/
14391440
export interface Redirect {
14401441
/** The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages), in the range 300-308. */
@@ -1752,6 +1753,7 @@ declare module '@sveltejs/kit' {
17521753
}
17531754

17541755
interface ManifestData {
1756+
/** Static files from `kit.config.files.assets` */
17551757
assets: Asset[];
17561758
hooks: {
17571759
client: string | null;

0 commit comments

Comments
 (0)