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
* Resolve a path to the `name` directory inside `outDir`, e.g. `/path/to/.svelte-kit/my-adapter`.
138
138
* @param name path to the file, relative to the build directory
139
139
*/
140
-
getBuildDirectory(name: string):string;
140
+
getBuildDirectory: (name: string)=>string;
141
141
/** Get the fully resolved path to the directory containing client-side assets, including the contents of your `static` directory. */
142
-
getClientDirectory():string;
142
+
getClientDirectory: ()=>string;
143
143
/** Get the fully resolved path to the directory containing server-side code. */
144
-
getServerDirectory():string;
144
+
getServerDirectory: ()=>string;
145
145
/** Get the application path including any configured `base` path, e.g. `my-base-path/_app`. */
146
-
getAppPath():string;
146
+
getAppPath: ()=>string;
147
147
148
148
/**
149
149
* Write client assets to `dest`.
150
150
* @param dest the destination folder
151
151
* @returns an array of files written to `dest`
152
152
*/
153
-
writeClient(dest: string):string[];
153
+
writeClient: (dest: string)=>string[];
154
154
/**
155
155
* Write prerendered files to `dest`.
156
156
* @param dest the destination folder
157
157
* @returns an array of files written to `dest`
158
158
*/
159
-
writePrerendered(dest: string):string[];
159
+
writePrerendered: (dest: string)=>string[];
160
160
/**
161
161
* Write server-side code to `dest`.
162
162
* @param dest the destination folder
163
163
* @returns an array of files written to `dest`
164
164
*/
165
-
writeServer(dest: string):string[];
165
+
writeServer: (dest: string)=>string[];
166
166
/**
167
167
* Copy a file or directory.
168
168
* @param from the source file or directory
@@ -171,20 +171,20 @@ export interface Builder {
171
171
* @param opts.replace a map of strings to replace
172
172
* @returns an array of files that were copied
173
173
*/
174
-
copy(
174
+
copy: (
175
175
from: string,
176
176
to: string,
177
177
opts?: {
178
178
filter?(basename: string): boolean;
179
179
replace?: Record<string,string>;
180
180
}
181
-
):string[];
181
+
)=>string[];
182
182
183
183
/**
184
184
* Compress files in `directory` with gzip and brotli, where appropriate. Generates `.gz` and `.br` files alongside the originals.
185
185
* @param {string} directory The directory containing the files to be compressed
186
186
*/
187
-
compress(directory: string):Promise<void>;
187
+
compress: (directory: string)=>Promise<void>;
188
188
}
189
189
190
190
exportinterfaceConfig{
@@ -214,13 +214,13 @@ export interface Cookies {
214
214
* @param name the name of the cookie
215
215
* @param opts the options, passed directly to `cookie.parse`. See documentation [here](https://github.com/jshttp/cookie#cookieparsestr-options)
* Gets all cookies that were previously set with `cookies.set`, or from the request headers.
221
221
* @param opts the options, passed directly to `cookie.parse`. See documentation [here](https://github.com/jshttp/cookie#cookieparsestr-options)
* Sets a cookie. This will add a `set-cookie` header to the response, but also make the cookie available via `cookies.get` or `cookies.getAll` during the current request.
@@ -232,11 +232,11 @@ export interface Cookies {
232
232
* @param value the cookie value
233
233
* @param opts the options, passed directly to `cookie.serialize`. See documentation [here](https://github.com/jshttp/cookie#cookieserializename-value-options)
* Deletes a cookie by setting its value to an empty string and setting the expiry date in the past.
@@ -245,7 +245,7 @@ export interface Cookies {
245
245
* @param name the name of the cookie
246
246
* @param opts the options, passed directly to `cookie.serialize`. The `path` must match the path of the cookie you want to delete. See documentation [here](https://github.com/jshttp/cookie#cookieserializename-value-options)
* Serialize a cookie name-value pair into a `Set-Cookie` header string, but don't apply it to the response.
@@ -258,11 +258,11 @@ export interface Cookies {
258
258
* @param value the cookie value
259
259
* @param opts the options, passed directly to `cookie.serialize`. See documentation [here](https://github.com/jshttp/cookie#cookieserializename-value-options)
* @param opts the options, passed directly to `cookie.parse`. See documentation [here](https://github.com/jshttp/cookie#cookieparsestr-options)
* Gets all cookies that were previously set with `cookies.set`, or from the request headers.
203
203
* @param opts the options, passed directly to `cookie.parse`. See documentation [here](https://github.com/jshttp/cookie#cookieparsestr-options)
* Sets a cookie. This will add a `set-cookie` header to the response, but also make the cookie available via `cookies.get` or `cookies.getAll` during the current request.
* @param opts the options, passed directly to `cookie.serialize`. See documentation [here](https://github.com/jshttp/cookie#cookieserializename-value-options)
* @param opts the options, passed directly to `cookie.serialize`. The `path` must match the path of the cookie you want to delete. See documentation [here](https://github.com/jshttp/cookie#cookieserializename-value-options)
* @param opts the options, passed directly to `cookie.serialize`. See documentation [here](https://github.com/jshttp/cookie#cookieserializename-value-options)
0 commit comments