Reorganize Files
This commit is contained in:
1 parent
40aa95cfe3
commit
92259db8a0
21 files changed
+513
No files matched your search
File renamed without changes.
Vendored
+386
@@ -0,0 +1,386 @@
|
|||||||
|
|
||||||
|
// this file is generated — do not edit it
|
||||||
|
|
||||||
|
|
||||||
|
/// <reference types="@sveltejs/kit" />
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This module provides access to environment variables that are injected _statically_ into your bundle at build time and are limited to _private_ access.
|
||||||
|
*
|
||||||
|
* | | Runtime | Build time |
|
||||||
|
* | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
||||||
|
* | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
|
||||||
|
* | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
|
||||||
|
*
|
||||||
|
* Static environment variables are [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env` at build time and then statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
||||||
|
*
|
||||||
|
* **_Private_ access:**
|
||||||
|
*
|
||||||
|
* - This module cannot be imported into client-side code
|
||||||
|
* - This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured)
|
||||||
|
*
|
||||||
|
* For example, given the following build time environment:
|
||||||
|
*
|
||||||
|
* ```env
|
||||||
|
* ENVIRONMENT=production
|
||||||
|
* PUBLIC_BASE_URL=http://site.com
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* With the default `publicPrefix` and `privatePrefix`:
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { ENVIRONMENT, PUBLIC_BASE_URL } from '$env/static/private';
|
||||||
|
*
|
||||||
|
* console.log(ENVIRONMENT); // => "production"
|
||||||
|
* console.log(PUBLIC_BASE_URL); // => throws error during build
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* The above values will be the same _even if_ different values for `ENVIRONMENT` or `PUBLIC_BASE_URL` are set at runtime, as they are statically replaced in your code with their build time values.
|
||||||
|
*/
|
||||||
|
declare module '$env/static/private' {
|
||||||
|
export const SHELL: string;
|
||||||
|
export const COLORTERM: string;
|
||||||
|
export const HYPRLAND_CMD: string;
|
||||||
|
export const XDG_CONFIG_DIRS: string;
|
||||||
|
export const XDG_SESSION_PATH: string;
|
||||||
|
export const XDG_MENU_PREFIX: string;
|
||||||
|
export const TERM_PROGRAM_VERSION: string;
|
||||||
|
export const GUM_CONFIRM_PROMPT_FOREGROUND: string;
|
||||||
|
export const JOBS: string;
|
||||||
|
export const XDG_BACKEND: string;
|
||||||
|
export const NODE: string;
|
||||||
|
export const XDG_DATA_HOME: string;
|
||||||
|
export const GUM_CONFIRM_SELECTED_BACKGROUND: string;
|
||||||
|
export const INPUT_METHOD: string;
|
||||||
|
export const XCOMPOSEFILE: string;
|
||||||
|
export const XDG_CONFIG_HOME: string;
|
||||||
|
export const OMARCHY_PATH: string;
|
||||||
|
export const MEMORY_PRESSURE_WRITE: string;
|
||||||
|
export const npm_config_local_prefix: string;
|
||||||
|
export const XMODIFIERS: string;
|
||||||
|
export const DESKTOP_SESSION: string;
|
||||||
|
export const NO_AT_BRIDGE: string;
|
||||||
|
export const XCURSOR_SIZE: string;
|
||||||
|
export const ANTIGRAVITY_CLI_ALIAS: string;
|
||||||
|
export const EDITOR: string;
|
||||||
|
export const XDG_SEAT: string;
|
||||||
|
export const PWD: string;
|
||||||
|
export const LOGNAME: string;
|
||||||
|
export const XDG_SESSION_DESKTOP: string;
|
||||||
|
export const XDG_SESSION_TYPE: string;
|
||||||
|
export const BUN_WHICH_IGNORE_CWD: string;
|
||||||
|
export const SYSTEMD_EXEC_PID: string;
|
||||||
|
export const _: string;
|
||||||
|
export const VSCODE_GIT_ASKPASS_NODE: string;
|
||||||
|
export const TERMINAL: string;
|
||||||
|
export const QT_STYLE_OVERRIDE: string;
|
||||||
|
export const MOTD_SHOWN: string;
|
||||||
|
export const HOME: string;
|
||||||
|
export const LANG: string;
|
||||||
|
export const _JAVA_AWT_WM_NONREPARENTING: string;
|
||||||
|
export const XDG_CURRENT_DESKTOP: string;
|
||||||
|
export const npm_package_version: string;
|
||||||
|
export const MEMORY_PRESSURE_WATCH: string;
|
||||||
|
export const STARSHIP_SHELL: string;
|
||||||
|
export const WAYLAND_DISPLAY: string;
|
||||||
|
export const __MISE_DIFF: string;
|
||||||
|
export const GIT_ASKPASS: string;
|
||||||
|
export const XDG_SEAT_PATH: string;
|
||||||
|
export const INVOCATION_ID: string;
|
||||||
|
export const MANAGERPID: string;
|
||||||
|
export const BAT_THEME: string;
|
||||||
|
export const INIT_CWD: string;
|
||||||
|
export const CHROME_DESKTOP: string;
|
||||||
|
export const STARSHIP_SESSION_KEY: string;
|
||||||
|
export const QT_QPA_PLATFORM: string;
|
||||||
|
export const UWSM_WAIT_VARNAMES: string;
|
||||||
|
export const __MISE_ORIG_PATH: string;
|
||||||
|
export const XDG_CACHE_HOME: string;
|
||||||
|
export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
||||||
|
export const VSCODE_PYTHON_AUTOACTIVATE_GUARD: string;
|
||||||
|
export const SDL_IM_MODULE: string;
|
||||||
|
export const XDG_SESSION_CLASS: string;
|
||||||
|
export const TERM: string;
|
||||||
|
export const npm_package_name: string;
|
||||||
|
export const USER: string;
|
||||||
|
export const SDL_VIDEODRIVER: string;
|
||||||
|
export const SUDO_EDITOR: string;
|
||||||
|
export const VSCODE_GIT_IPC_HANDLE: string;
|
||||||
|
export const OZONE_PLATFORM: string;
|
||||||
|
export const __MISE_SESSION: string;
|
||||||
|
export const HYPRLAND_INSTANCE_SIGNATURE: string;
|
||||||
|
export const DISPLAY: string;
|
||||||
|
export const SHLVL: string;
|
||||||
|
export const MOZ_ENABLE_WAYLAND: string;
|
||||||
|
export const QT_IM_MODULE: string;
|
||||||
|
export const XDG_VTNR: string;
|
||||||
|
export const XDG_SESSION_ID: string;
|
||||||
|
export const MANAGERPIDFDID: string;
|
||||||
|
export const npm_config_user_agent: string;
|
||||||
|
export const XDG_STATE_HOME: string;
|
||||||
|
export const npm_execpath: string;
|
||||||
|
export const FC_FONTATIONS: string;
|
||||||
|
export const XDG_RUNTIME_DIR: string;
|
||||||
|
export const DEBUGINFOD_URLS: string;
|
||||||
|
export const npm_package_json: string;
|
||||||
|
export const VSCODE_GIT_ASKPASS_MAIN: string;
|
||||||
|
export const JOURNAL_STREAM: string;
|
||||||
|
export const MISE_SHELL: string;
|
||||||
|
export const XDG_DATA_DIRS: string;
|
||||||
|
export const GDK_BACKEND: string;
|
||||||
|
export const PATH: string;
|
||||||
|
export const GDK_SCALE: string;
|
||||||
|
export const DBUS_SESSION_BUS_ADDRESS: string;
|
||||||
|
export const MAIL: string;
|
||||||
|
export const GUM_CONFIRM_UNSELECTED_FOREGROUND: string;
|
||||||
|
export const UWSM_FINALIZE_VARNAMES: string;
|
||||||
|
export const GUM_CONFIRM_UNSELECTED_BACKGROUND: string;
|
||||||
|
export const npm_node_execpath: string;
|
||||||
|
export const GUM_CONFIRM_SELECTED_FOREGROUND: string;
|
||||||
|
export const HYPRCURSOR_SIZE: string;
|
||||||
|
export const TERM_PROGRAM: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This module provides access to environment variables that are injected _statically_ into your bundle at build time and are _publicly_ accessible.
|
||||||
|
*
|
||||||
|
* | | Runtime | Build time |
|
||||||
|
* | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
||||||
|
* | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
|
||||||
|
* | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
|
||||||
|
*
|
||||||
|
* Static environment variables are [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env` at build time and then statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
||||||
|
*
|
||||||
|
* **_Public_ access:**
|
||||||
|
*
|
||||||
|
* - This module _can_ be imported into client-side code
|
||||||
|
* - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
|
||||||
|
*
|
||||||
|
* For example, given the following build time environment:
|
||||||
|
*
|
||||||
|
* ```env
|
||||||
|
* ENVIRONMENT=production
|
||||||
|
* PUBLIC_BASE_URL=http://site.com
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* With the default `publicPrefix` and `privatePrefix`:
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { ENVIRONMENT, PUBLIC_BASE_URL } from '$env/static/public';
|
||||||
|
*
|
||||||
|
* console.log(ENVIRONMENT); // => throws error during build
|
||||||
|
* console.log(PUBLIC_BASE_URL); // => "http://site.com"
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* The above values will be the same _even if_ different values for `ENVIRONMENT` or `PUBLIC_BASE_URL` are set at runtime, as they are statically replaced in your code with their build time values.
|
||||||
|
*/
|
||||||
|
declare module '$env/static/public' {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This module provides access to environment variables set _dynamically_ at runtime and that are limited to _private_ access.
|
||||||
|
*
|
||||||
|
* | | Runtime | Build time |
|
||||||
|
* | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
||||||
|
* | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
|
||||||
|
* | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
|
||||||
|
*
|
||||||
|
* Dynamic environment variables are defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`.
|
||||||
|
*
|
||||||
|
* **_Private_ access:**
|
||||||
|
*
|
||||||
|
* - This module cannot be imported into client-side code
|
||||||
|
* - This module includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured)
|
||||||
|
*
|
||||||
|
* > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
||||||
|
*
|
||||||
|
* > [!NOTE] To get correct types, environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
|
||||||
|
* >
|
||||||
|
* > ```env
|
||||||
|
* > MY_FEATURE_FLAG=
|
||||||
|
* > ```
|
||||||
|
* >
|
||||||
|
* > You can override `.env` values from the command line like so:
|
||||||
|
* >
|
||||||
|
* > ```sh
|
||||||
|
* > MY_FEATURE_FLAG="enabled" npm run dev
|
||||||
|
* > ```
|
||||||
|
*
|
||||||
|
* For example, given the following runtime environment:
|
||||||
|
*
|
||||||
|
* ```env
|
||||||
|
* ENVIRONMENT=production
|
||||||
|
* PUBLIC_BASE_URL=http://site.com
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* With the default `publicPrefix` and `privatePrefix`:
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { env } from '$env/dynamic/private';
|
||||||
|
*
|
||||||
|
* console.log(env.ENVIRONMENT); // => "production"
|
||||||
|
* console.log(env.PUBLIC_BASE_URL); // => undefined
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
declare module '$env/dynamic/private' {
|
||||||
|
export const env: {
|
||||||
|
SHELL: string;
|
||||||
|
COLORTERM: string;
|
||||||
|
HYPRLAND_CMD: string;
|
||||||
|
XDG_CONFIG_DIRS: string;
|
||||||
|
XDG_SESSION_PATH: string;
|
||||||
|
XDG_MENU_PREFIX: string;
|
||||||
|
TERM_PROGRAM_VERSION: string;
|
||||||
|
GUM_CONFIRM_PROMPT_FOREGROUND: string;
|
||||||
|
JOBS: string;
|
||||||
|
XDG_BACKEND: string;
|
||||||
|
NODE: string;
|
||||||
|
XDG_DATA_HOME: string;
|
||||||
|
GUM_CONFIRM_SELECTED_BACKGROUND: string;
|
||||||
|
INPUT_METHOD: string;
|
||||||
|
XCOMPOSEFILE: string;
|
||||||
|
XDG_CONFIG_HOME: string;
|
||||||
|
OMARCHY_PATH: string;
|
||||||
|
MEMORY_PRESSURE_WRITE: string;
|
||||||
|
npm_config_local_prefix: string;
|
||||||
|
XMODIFIERS: string;
|
||||||
|
DESKTOP_SESSION: string;
|
||||||
|
NO_AT_BRIDGE: string;
|
||||||
|
XCURSOR_SIZE: string;
|
||||||
|
ANTIGRAVITY_CLI_ALIAS: string;
|
||||||
|
EDITOR: string;
|
||||||
|
XDG_SEAT: string;
|
||||||
|
PWD: string;
|
||||||
|
LOGNAME: string;
|
||||||
|
XDG_SESSION_DESKTOP: string;
|
||||||
|
XDG_SESSION_TYPE: string;
|
||||||
|
BUN_WHICH_IGNORE_CWD: string;
|
||||||
|
SYSTEMD_EXEC_PID: string;
|
||||||
|
_: string;
|
||||||
|
VSCODE_GIT_ASKPASS_NODE: string;
|
||||||
|
TERMINAL: string;
|
||||||
|
QT_STYLE_OVERRIDE: string;
|
||||||
|
MOTD_SHOWN: string;
|
||||||
|
HOME: string;
|
||||||
|
LANG: string;
|
||||||
|
_JAVA_AWT_WM_NONREPARENTING: string;
|
||||||
|
XDG_CURRENT_DESKTOP: string;
|
||||||
|
npm_package_version: string;
|
||||||
|
MEMORY_PRESSURE_WATCH: string;
|
||||||
|
STARSHIP_SHELL: string;
|
||||||
|
WAYLAND_DISPLAY: string;
|
||||||
|
__MISE_DIFF: string;
|
||||||
|
GIT_ASKPASS: string;
|
||||||
|
XDG_SEAT_PATH: string;
|
||||||
|
INVOCATION_ID: string;
|
||||||
|
MANAGERPID: string;
|
||||||
|
BAT_THEME: string;
|
||||||
|
INIT_CWD: string;
|
||||||
|
CHROME_DESKTOP: string;
|
||||||
|
STARSHIP_SESSION_KEY: string;
|
||||||
|
QT_QPA_PLATFORM: string;
|
||||||
|
UWSM_WAIT_VARNAMES: string;
|
||||||
|
__MISE_ORIG_PATH: string;
|
||||||
|
XDG_CACHE_HOME: string;
|
||||||
|
VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
||||||
|
VSCODE_PYTHON_AUTOACTIVATE_GUARD: string;
|
||||||
|
SDL_IM_MODULE: string;
|
||||||
|
XDG_SESSION_CLASS: string;
|
||||||
|
TERM: string;
|
||||||
|
npm_package_name: string;
|
||||||
|
USER: string;
|
||||||
|
SDL_VIDEODRIVER: string;
|
||||||
|
SUDO_EDITOR: string;
|
||||||
|
VSCODE_GIT_IPC_HANDLE: string;
|
||||||
|
OZONE_PLATFORM: string;
|
||||||
|
__MISE_SESSION: string;
|
||||||
|
HYPRLAND_INSTANCE_SIGNATURE: string;
|
||||||
|
DISPLAY: string;
|
||||||
|
SHLVL: string;
|
||||||
|
MOZ_ENABLE_WAYLAND: string;
|
||||||
|
QT_IM_MODULE: string;
|
||||||
|
XDG_VTNR: string;
|
||||||
|
XDG_SESSION_ID: string;
|
||||||
|
MANAGERPIDFDID: string;
|
||||||
|
npm_config_user_agent: string;
|
||||||
|
XDG_STATE_HOME: string;
|
||||||
|
npm_execpath: string;
|
||||||
|
FC_FONTATIONS: string;
|
||||||
|
XDG_RUNTIME_DIR: string;
|
||||||
|
DEBUGINFOD_URLS: string;
|
||||||
|
npm_package_json: string;
|
||||||
|
VSCODE_GIT_ASKPASS_MAIN: string;
|
||||||
|
JOURNAL_STREAM: string;
|
||||||
|
MISE_SHELL: string;
|
||||||
|
XDG_DATA_DIRS: string;
|
||||||
|
GDK_BACKEND: string;
|
||||||
|
PATH: string;
|
||||||
|
GDK_SCALE: string;
|
||||||
|
DBUS_SESSION_BUS_ADDRESS: string;
|
||||||
|
MAIL: string;
|
||||||
|
GUM_CONFIRM_UNSELECTED_FOREGROUND: string;
|
||||||
|
UWSM_FINALIZE_VARNAMES: string;
|
||||||
|
GUM_CONFIRM_UNSELECTED_BACKGROUND: string;
|
||||||
|
npm_node_execpath: string;
|
||||||
|
GUM_CONFIRM_SELECTED_FOREGROUND: string;
|
||||||
|
HYPRCURSOR_SIZE: string;
|
||||||
|
TERM_PROGRAM: string;
|
||||||
|
[key: `PUBLIC_${string}`]: undefined;
|
||||||
|
[key: `${string}`]: string | undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This module provides access to environment variables set _dynamically_ at runtime and that are _publicly_ accessible.
|
||||||
|
*
|
||||||
|
* | | Runtime | Build time |
|
||||||
|
* | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
||||||
|
* | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
|
||||||
|
* | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
|
||||||
|
*
|
||||||
|
* Dynamic environment variables are defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`.
|
||||||
|
*
|
||||||
|
* **_Public_ access:**
|
||||||
|
*
|
||||||
|
* - This module _can_ be imported into client-side code
|
||||||
|
* - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
|
||||||
|
*
|
||||||
|
* > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
||||||
|
*
|
||||||
|
* > [!NOTE] To get correct types, environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
|
||||||
|
* >
|
||||||
|
* > ```env
|
||||||
|
* > MY_FEATURE_FLAG=
|
||||||
|
* > ```
|
||||||
|
* >
|
||||||
|
* > You can override `.env` values from the command line like so:
|
||||||
|
* >
|
||||||
|
* > ```sh
|
||||||
|
* > MY_FEATURE_FLAG="enabled" npm run dev
|
||||||
|
* > ```
|
||||||
|
*
|
||||||
|
* For example, given the following runtime environment:
|
||||||
|
*
|
||||||
|
* ```env
|
||||||
|
* ENVIRONMENT=production
|
||||||
|
* PUBLIC_BASE_URL=http://example.com
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* With the default `publicPrefix` and `privatePrefix`:
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { env } from '$env/dynamic/public';
|
||||||
|
* console.log(env.ENVIRONMENT); // => undefined, not public
|
||||||
|
* console.log(env.PUBLIC_BASE_URL); // => "http://example.com"
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
declare module '$env/dynamic/public' {
|
||||||
|
export const env: {
|
||||||
|
[key: `PUBLIC_${string}`]: string | undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
+43
@@ -0,0 +1,43 @@
|
|||||||
|
|
||||||
|
// this file is generated — do not edit it
|
||||||
|
|
||||||
|
|
||||||
|
declare module "svelte/elements" {
|
||||||
|
export interface HTMLAttributes<T> {
|
||||||
|
'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
|
||||||
|
'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;
|
||||||
|
'data-sveltekit-preload-code'?:
|
||||||
|
| true
|
||||||
|
| ''
|
||||||
|
| 'eager'
|
||||||
|
| 'viewport'
|
||||||
|
| 'hover'
|
||||||
|
| 'tap'
|
||||||
|
| 'off'
|
||||||
|
| undefined
|
||||||
|
| null;
|
||||||
|
'data-sveltekit-preload-data'?: true | '' | 'hover' | 'tap' | 'off' | undefined | null;
|
||||||
|
'data-sveltekit-reload'?: true | '' | 'off' | undefined | null;
|
||||||
|
'data-sveltekit-replacestate'?: true | '' | 'off' | undefined | null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export {};
|
||||||
|
|
||||||
|
|
||||||
|
declare module "$app/types" {
|
||||||
|
type MatcherParam<M> = M extends (param : string) => param is (infer U extends string) ? U : string;
|
||||||
|
|
||||||
|
export interface AppTypes {
|
||||||
|
RouteId(): "/";
|
||||||
|
RouteParams(): {
|
||||||
|
|
||||||
|
};
|
||||||
|
LayoutParams(): {
|
||||||
|
"/": Record<string, never>
|
||||||
|
};
|
||||||
|
Pathname(): "/";
|
||||||
|
ResolvedPathname(): `${"" | `/${string}`}${ReturnType<AppTypes['Pathname']>}`;
|
||||||
|
Asset(): "/robots.txt" | string & {};
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"paths": {
|
||||||
|
"$lib": [
|
||||||
|
"../src/lib"
|
||||||
|
],
|
||||||
|
"$lib/*": [
|
||||||
|
"../src/lib/*"
|
||||||
|
],
|
||||||
|
"$app/types": [
|
||||||
|
"./types/index.d.ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"rootDirs": [
|
||||||
|
"..",
|
||||||
|
"./types"
|
||||||
|
],
|
||||||
|
"verbatimModuleSyntax": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"lib": [
|
||||||
|
"esnext",
|
||||||
|
"DOM",
|
||||||
|
"DOM.Iterable"
|
||||||
|
],
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"module": "esnext",
|
||||||
|
"noEmit": true,
|
||||||
|
"target": "esnext",
|
||||||
|
"types": [
|
||||||
|
"node"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"ambient.d.ts",
|
||||||
|
"non-ambient.d.ts",
|
||||||
|
"./types/**/$types.d.ts",
|
||||||
|
"../vite.config.js",
|
||||||
|
"../vite.config.ts",
|
||||||
|
"../src/**/*.js",
|
||||||
|
"../src/**/*.ts",
|
||||||
|
"../src/**/*.svelte",
|
||||||
|
"../test/**/*.js",
|
||||||
|
"../test/**/*.ts",
|
||||||
|
"../test/**/*.svelte",
|
||||||
|
"../tests/**/*.js",
|
||||||
|
"../tests/**/*.ts",
|
||||||
|
"../tests/**/*.svelte"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"../node_modules/**",
|
||||||
|
"../src/service-worker.js",
|
||||||
|
"../src/service-worker/**/*.js",
|
||||||
|
"../src/service-worker.ts",
|
||||||
|
"../src/service-worker/**/*.ts",
|
||||||
|
"../src/service-worker.d.ts",
|
||||||
|
"../src/service-worker/**/*.d.ts"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"/": []
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
import type * as Kit from '@sveltejs/kit';
|
||||||
|
|
||||||
|
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
||||||
|
type MatcherParam<M> = M extends (param : string) => param is (infer U extends string) ? U : string;
|
||||||
|
type RouteParams = { };
|
||||||
|
type RouteId = '/';
|
||||||
|
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
||||||
|
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
||||||
|
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
||||||
|
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
||||||
|
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;
|
||||||
|
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
||||||
|
type PageParentData = EnsureDefined<LayoutData>;
|
||||||
|
type LayoutRouteId = RouteId | "/" | null
|
||||||
|
type LayoutParams = RouteParams & { }
|
||||||
|
type LayoutParentData = EnsureDefined<{}>;
|
||||||
|
|
||||||
|
export type PageServerData = null;
|
||||||
|
export type PageData = Expand<PageParentData>;
|
||||||
|
export type PageProps = { params: RouteParams; data: PageData }
|
||||||
|
export type LayoutServerData = null;
|
||||||
|
export type LayoutData = Expand<LayoutParentData>;
|
||||||
|
export type LayoutProps = { params: LayoutParams; data: LayoutData; children: import("svelte").Snippet }
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user