mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-18 16:02:57 +00:00
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { Plugin } from 'vite';
|
|
import { VitePWAOptions } from 'vite-plugin-pwa';
|
|
|
|
interface KitOptions {
|
|
/**
|
|
* The base path for your application: by default will use the Vite base.
|
|
*
|
|
* @deprecated since ^0.1.0 version, the plugin has SvelteKit ^1.0.0 as peer dependency, Vite's base is now properly configured.
|
|
* @default '/'
|
|
* @see https://kit.svelte.dev/docs/configuration#paths
|
|
* */
|
|
base?: string;
|
|
/**
|
|
* @default '.svelte-kit'
|
|
* @see https://kit.svelte.dev/docs/configuration#outdir
|
|
*/
|
|
outDir?: string;
|
|
/**
|
|
* @see https://github.com/sveltejs/kit/tree/master/packages/adapter-static#fallback
|
|
*/
|
|
adapterFallback?: string;
|
|
/**
|
|
* @default 'never'
|
|
* @see https://kit.svelte.dev/docs/configuration#trailingslash
|
|
* */
|
|
trailingSlash?: 'never' | 'always' | 'ignore';
|
|
}
|
|
interface SvelteKitPWAOptions extends Partial<VitePWAOptions> {
|
|
kit?: KitOptions;
|
|
}
|
|
|
|
declare function SvelteKitPWA(userOptions?: Partial<SvelteKitPWAOptions>): Plugin[];
|
|
|
|
export { type KitOptions, SvelteKitPWA, type SvelteKitPWAOptions };
|