@@ -68,11 +68,11 @@ export interface BuildData {
68
68
out_dir : string ;
69
69
service_worker : string | null ;
70
70
client : {
71
- /** Path to the client entry point */
71
+ /** Path to the client entry point. */
72
72
start : string ;
73
- /** Path to the generated `app.js` file that contains the client manifest. Only set in case of `bundleStrategy === 'split'` */
73
+ /** Path to the generated `app.js` file that contains the client manifest. Only set in case of `bundleStrategy === 'split'`. */
74
74
app ?: string ;
75
- /** JS files that the client entry point relies on */
75
+ /** JS files that the client entry point relies on. */
76
76
imports : string [ ] ;
77
77
/**
78
78
* JS files that represent the entry points of the layouts/pages.
@@ -95,7 +95,7 @@ export interface BuildData {
95
95
stylesheets : string [ ] ;
96
96
fonts : string [ ] ;
97
97
uses_env_dynamic_public : boolean ;
98
- /** Only set in case of `bundleStrategy === 'inline'` */
98
+ /** Only set in case of `bundleStrategy === 'inline'`. */
99
99
inline ?: {
100
100
script : string ;
101
101
style : string | undefined ;
@@ -172,14 +172,15 @@ export class InternalServer extends Server {
172
172
options : RequestOptions & {
173
173
prerendering ?: PrerenderOptions ;
174
174
read : ( file : string ) => Buffer ;
175
- /** A hook called before `handle` during dev, so that `AsyncLocalStorage` can be populated */
175
+ /** A hook called before `handle` during dev, so that `AsyncLocalStorage` can be populated. */
176
176
before_handle ?: ( event : RequestEvent , config : any , prerender : PrerenderOption ) => void ;
177
177
emulator ?: Emulator ;
178
178
}
179
179
) : Promise < Response > ;
180
180
}
181
181
182
182
export interface ManifestData {
183
+ /** Static files from `kit.config.files.assets`. */
183
184
assets : Asset [ ] ;
184
185
hooks : {
185
186
client : string | null ;
@@ -193,15 +194,15 @@ export interface ManifestData {
193
194
194
195
export interface PageNode {
195
196
depth : number ;
196
- /** The +page/layout.svelte */
197
+ /** The ` +page/layout.svelte`. */
197
198
component ?: string ; // TODO supply default component if it's missing (bit of an edge case)
198
- /** The +page/layout.js/.ts */
199
+ /** The ` +page/layout.js/.ts`. */
199
200
universal ?: string ;
200
- /** The +page/layout.server.js/ts */
201
+ /** The ` +page/layout.server.js/ts`. */
201
202
server ?: string ;
202
203
parent_id ?: string ;
203
204
parent ?: PageNode ;
204
- /** Filled with the pages that reference this layout (if this is a layout) */
205
+ /** Filled with the pages that reference this layout (if this is a layout). */
205
206
child_pages ?: PageNode [ ] ;
206
207
}
207
208
@@ -219,6 +220,7 @@ export interface PrerenderOptions {
219
220
export type RecursiveRequired < T > = {
220
221
// Recursive implementation of TypeScript's Required utility type.
221
222
// Will recursively continue until it reaches a primitive or Function
223
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
222
224
[ K in keyof T ] -?: Extract < T [ K ] , Function > extends never // If it does not have a Function type
223
225
? RecursiveRequired < T [ K ] > // recursively continue through.
224
226
: T [ K ] ; // Use the exact type for everything else
@@ -305,20 +307,20 @@ export interface ServerDataChunkNode {
305
307
306
308
/**
307
309
* Signals that the server `load` function was not run, and the
308
- * client should use what it has in memory
310
+ * client should use what it has in memory.
309
311
*/
310
312
export interface ServerDataSkippedNode {
311
313
type : 'skip' ;
312
314
}
313
315
314
316
/**
315
- * Signals that the server `load` function failed
317
+ * Signals that the server `load` function failed.
316
318
*/
317
319
export interface ServerErrorNode {
318
320
type : 'error' ;
319
321
error : App . Error ;
320
322
/**
321
- * Only set for HttpErrors
323
+ * Only set for HttpErrors.
322
324
*/
323
325
status ?: number ;
324
326
}
@@ -338,7 +340,7 @@ export interface ServerMetadataRoute {
338
340
339
341
export interface ServerMetadata {
340
342
nodes : Array < {
341
- /** Also `true` when using `trailingSlash`, because we need to do a server request in that case to get its value */
343
+ /** Also `true` when using `trailingSlash`, because we need to do a server request in that case to get its value. */
342
344
has_server_load : boolean ;
343
345
} > ;
344
346
routes : Map < string , ServerMetadataRoute > ;
@@ -364,15 +366,15 @@ export type SSRComponentLoader = () => Promise<SSRComponent>;
364
366
365
367
export interface SSRNode {
366
368
component : SSRComponentLoader ;
367
- /** index into the `nodes` array in the generated `client/app.js` */
369
+ /** index into the `nodes` array in the generated `client/app.js`. */
368
370
index : number ;
369
371
/** external JS files that are loaded on the client. `imports[0]` is the entry point (e.g. `client/nodes/0.js`) */
370
372
imports : string [ ] ;
371
373
/** external CSS files that are loaded on the client */
372
374
stylesheets : string [ ] ;
373
375
/** external font files that are loaded on the client */
374
376
fonts : string [ ] ;
375
- /** inlined styles */
377
+ /** inlined styles. */
376
378
inline_styles ?( ) : MaybePromise < Record < string , string > > ;
377
379
378
380
universal : {
@@ -465,18 +467,18 @@ export interface SSRState {
465
467
fallback ?: string ;
466
468
getClientAddress ( ) : string ;
467
469
/**
468
- * True if we're currently attempting to render an error page
470
+ * True if we're currently attempting to render an error page.
469
471
*/
470
472
error : boolean ;
471
473
/**
472
- * Allows us to prevent `event.fetch` from making infinitely looping internal requests
474
+ * Allows us to prevent `event.fetch` from making infinitely looping internal requests.
473
475
*/
474
476
depth : number ;
475
477
platform ?: any ;
476
478
prerendering ?: PrerenderOptions ;
477
479
/**
478
480
* When fetching data from a +server.js endpoint in `load`, the page's
479
- * prerender option is inherited by the endpoint, unless overridden
481
+ * prerender option is inherited by the endpoint, unless overridden.
480
482
*/
481
483
prerender_default ?: PrerenderOption ;
482
484
read ?: ( file : string ) => Buffer ;
0 commit comments