You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`\nWarning: The following routes have an ISR config which is ignored because the route is prerendered:`
227
+
'\nWarning: The following routes have an ISR config which is ignored because the route is prerendered:'
228
228
);
229
229
230
230
for(constignoredofignored_isr){
@@ -586,7 +586,7 @@ function validate_vercel_json(builder, vercel_config) {
586
586
587
587
if(unmatched_paths.length){
588
588
builder.log.warn(
589
-
`\nWarning: vercel.json defines cron tasks that use paths that do not correspond to an API route with a GET handler (ignore this if the request is handled in your \`handle\` hook):`
589
+
'\nWarning: vercel.json defines cron tasks that use paths that do not correspond to an API route with a GET handler (ignore this if the request is handled in your `handle` hook):'
constimports=[`import type * as Kit from '@sveltejs/kit';`];
180
+
constimports=["import type * as Kit from '@sveltejs/kit';"];
181
181
182
182
/** @type {string[]} */
183
183
constdeclarations=[];
@@ -196,7 +196,7 @@ function update_types(config, routes, route, to_delete = new Set()) {
196
196
197
197
if(route.params.length>0){
198
198
exports.push(
199
-
`export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;`
199
+
'export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;'
200
200
);
201
201
}
202
202
@@ -206,24 +206,24 @@ function update_types(config, routes, route, to_delete = new Set()) {
206
206
if(route.layout||route.leaf){
207
207
declarations.push(
208
208
// If T extends the empty object, void is also allowed as a return type
209
-
`type MaybeWithVoid<T> = {} extends T ? T | void : T;`,
209
+
'type MaybeWithVoid<T> = {} extends T ? T | void : T;',
210
210
211
211
// Returns the key of the object whose values are required.
212
-
`export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];`,
212
+
'export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];',
213
213
214
214
// Helper type to get the correct output type for load functions. It should be passed the parent type to check what types from App.PageData are still required.
215
215
// If none, void is also allowed as a return type.
// Takes a union type and returns a union type where each type also has all properties
222
222
// of all possible types (typed as undefined), making accessing them more ergonomic
223
-
`type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;`,
223
+
'type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;',
224
224
225
225
// Re-export `Snapshot` from @sveltejs/kit — in future we could use this to infer <T> from the return type of `snapshot.capture`
226
-
`export type Snapshot<T = any> = Kit.Snapshot<T>;`
226
+
'export type Snapshot<T = any> = Kit.Snapshot<T>;'
227
227
);
228
228
}
229
229
@@ -255,10 +255,10 @@ function update_types(config, routes, route, to_delete = new Set()) {
0 commit comments