| 9 | * [Adapters](https://svelte.dev/docs/kit/adapters) are responsible for taking the production build and turning it into something that can be deployed to a platform of your choosing. |
| 10 | */ |
| 11 | export interface Adapter { |
| 12 | /** |
| 13 | * The name of the adapter, using for logging. Will typically correspond to the package name. |
| 14 | */ |
| 15 | name: string; |
| 16 | /** |
| 17 | * This function is called after SvelteKit has built your app. |
| 18 | * @param builder An object provided by SvelteKit that contains methods for adapting the app |
| 19 | */ |
| 20 | adapt: (builder: Builder) => MaybePromise<void>; |
| 21 | /** |
| 22 | * Checks called during dev and build to determine whether specific features will work in production with this adapter. |
| 23 | */ |
| 24 | supports?: { |
| 25 | /** |
| 26 | * Test support for `read` from `$app/server`. |
| 27 | * @param details.config The merged route config |
| 28 | */ |
| 29 | read?: (details: { config: any; route: { id: string } }) => boolean; |
| 30 | }; |
| 31 | /** |
| 32 | * Creates an `Emulator`, which allows the adapter to influence the environment |
| 33 | * during dev, build and prerendering. |
| 34 | */ |
| 35 | emulate?: () => MaybePromise<Emulator>; |
| 36 | } |
| 37 | |
| 38 | export type LoadProperties<input extends Record<string, any> | void> = input extends void |
| 39 | ? undefined // needs to be undefined, because void will break intellisense |
nothing calls this directly
no outgoing calls
no test coverage detected