Migrate to sveltekit #26
8 changed files with 0 additions and 403 deletions
217
.svelte-kit/ambient.d.ts
vendored
217
.svelte-kit/ambient.d.ts
vendored
|
@ -1,217 +0,0 @@
|
||||||
|
|
||||||
// this file is generated — do not edit it
|
|
||||||
|
|
||||||
|
|
||||||
/// <reference types="@sveltejs/kit" />
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), 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).
|
|
||||||
*
|
|
||||||
* _Unlike_ [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import { API_KEY } from '$env/static/private';
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* Note that all 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:
|
|
||||||
*
|
|
||||||
* ```
|
|
||||||
* MY_FEATURE_FLAG=""
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* You can override `.env` values from the command line like so:
|
|
||||||
*
|
|
||||||
* ```bash
|
|
||||||
* MY_FEATURE_FLAG="enabled" npm run dev
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
declare module '$env/static/private' {
|
|
||||||
export const NVM_INC: string;
|
|
||||||
export const TERM_PROGRAM: string;
|
|
||||||
export const NODE: string;
|
|
||||||
export const INIT_CWD: string;
|
|
||||||
export const NVM_CD_FLAGS: string;
|
|
||||||
export const TERM: string;
|
|
||||||
export const SHELL: string;
|
|
||||||
export const HOMEBREW_REPOSITORY: string;
|
|
||||||
export const TMPDIR: string;
|
|
||||||
export const npm_config_global_prefix: string;
|
|
||||||
export const TERM_PROGRAM_VERSION: string;
|
|
||||||
export const ZDOTDIR: string;
|
|
||||||
export const ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
|
||||||
export const MallocNanoZone: string;
|
|
||||||
export const COLOR: string;
|
|
||||||
export const npm_config_noproxy: string;
|
|
||||||
export const npm_config_local_prefix: string;
|
|
||||||
export const ZSH: string;
|
|
||||||
export const NVM_DIR: string;
|
|
||||||
export const USER: string;
|
|
||||||
export const LS_COLORS: string;
|
|
||||||
export const COMMAND_MODE: string;
|
|
||||||
export const npm_config_globalconfig: string;
|
|
||||||
export const SSH_AUTH_SOCK: string;
|
|
||||||
export const VSCODE_PROFILE_INITIALIZED: string;
|
|
||||||
export const __CF_USER_TEXT_ENCODING: string;
|
|
||||||
export const npm_execpath: string;
|
|
||||||
export const PAGER: string;
|
|
||||||
export const LSCOLORS: string;
|
|
||||||
export const PATH: string;
|
|
||||||
export const npm_package_json: string;
|
|
||||||
export const _: string;
|
|
||||||
export const npm_config_userconfig: string;
|
|
||||||
export const npm_config_init_module: string;
|
|
||||||
export const USER_ZDOTDIR: string;
|
|
||||||
export const __CFBundleIdentifier: string;
|
|
||||||
export const npm_command: string;
|
|
||||||
export const PWD: string;
|
|
||||||
export const npm_lifecycle_event: string;
|
|
||||||
export const EDITOR: string;
|
|
||||||
export const npm_package_name: string;
|
|
||||||
export const LANG: string;
|
|
||||||
export const npm_config_npm_version: string;
|
|
||||||
export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
|
||||||
export const XPC_FLAGS: string;
|
|
||||||
export const npm_config_node_gyp: string;
|
|
||||||
export const npm_package_version: string;
|
|
||||||
export const XPC_SERVICE_NAME: string;
|
|
||||||
export const VSCODE_INJECTION: string;
|
|
||||||
export const SHLVL: string;
|
|
||||||
export const HOME: string;
|
|
||||||
export const VSCODE_GIT_ASKPASS_MAIN: string;
|
|
||||||
export const HOMEBREW_PREFIX: string;
|
|
||||||
export const npm_config_cache: string;
|
|
||||||
export const LESS: string;
|
|
||||||
export const LOGNAME: string;
|
|
||||||
export const npm_lifecycle_script: string;
|
|
||||||
export const VSCODE_GIT_IPC_HANDLE: string;
|
|
||||||
export const NVM_BIN: string;
|
|
||||||
export const npm_config_user_agent: string;
|
|
||||||
export const VSCODE_GIT_ASKPASS_NODE: string;
|
|
||||||
export const GIT_ASKPASS: string;
|
|
||||||
export const INFOPATH: string;
|
|
||||||
export const HOMEBREW_CELLAR: string;
|
|
||||||
export const npm_node_execpath: string;
|
|
||||||
export const npm_config_prefix: string;
|
|
||||||
export const COLORTERM: string;
|
|
||||||
export const NODE_ENV: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Similar to [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
|
||||||
*
|
|
||||||
* Values are replaced statically at build time.
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import { PUBLIC_BASE_URL } from '$env/static/public';
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
declare module '$env/static/public' {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This module provides access to runtime environment variables, as 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`. 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).
|
|
||||||
*
|
|
||||||
* This module cannot be imported into client-side code.
|
|
||||||
*
|
|
||||||
* Dynamic environment variables cannot be used during prerendering.
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import { env } from '$env/dynamic/private';
|
|
||||||
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
|
||||||
*/
|
|
||||||
declare module '$env/dynamic/private' {
|
|
||||||
export const env: {
|
|
||||||
NVM_INC: string;
|
|
||||||
TERM_PROGRAM: string;
|
|
||||||
NODE: string;
|
|
||||||
INIT_CWD: string;
|
|
||||||
NVM_CD_FLAGS: string;
|
|
||||||
TERM: string;
|
|
||||||
SHELL: string;
|
|
||||||
HOMEBREW_REPOSITORY: string;
|
|
||||||
TMPDIR: string;
|
|
||||||
npm_config_global_prefix: string;
|
|
||||||
TERM_PROGRAM_VERSION: string;
|
|
||||||
ZDOTDIR: string;
|
|
||||||
ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
|
||||||
MallocNanoZone: string;
|
|
||||||
COLOR: string;
|
|
||||||
npm_config_noproxy: string;
|
|
||||||
npm_config_local_prefix: string;
|
|
||||||
ZSH: string;
|
|
||||||
NVM_DIR: string;
|
|
||||||
USER: string;
|
|
||||||
LS_COLORS: string;
|
|
||||||
COMMAND_MODE: string;
|
|
||||||
npm_config_globalconfig: string;
|
|
||||||
SSH_AUTH_SOCK: string;
|
|
||||||
VSCODE_PROFILE_INITIALIZED: string;
|
|
||||||
__CF_USER_TEXT_ENCODING: string;
|
|
||||||
npm_execpath: string;
|
|
||||||
PAGER: string;
|
|
||||||
LSCOLORS: string;
|
|
||||||
PATH: string;
|
|
||||||
npm_package_json: string;
|
|
||||||
_: string;
|
|
||||||
npm_config_userconfig: string;
|
|
||||||
npm_config_init_module: string;
|
|
||||||
USER_ZDOTDIR: string;
|
|
||||||
__CFBundleIdentifier: string;
|
|
||||||
npm_command: string;
|
|
||||||
PWD: string;
|
|
||||||
npm_lifecycle_event: string;
|
|
||||||
EDITOR: string;
|
|
||||||
npm_package_name: string;
|
|
||||||
LANG: string;
|
|
||||||
npm_config_npm_version: string;
|
|
||||||
VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
|
||||||
XPC_FLAGS: string;
|
|
||||||
npm_config_node_gyp: string;
|
|
||||||
npm_package_version: string;
|
|
||||||
XPC_SERVICE_NAME: string;
|
|
||||||
VSCODE_INJECTION: string;
|
|
||||||
SHLVL: string;
|
|
||||||
HOME: string;
|
|
||||||
VSCODE_GIT_ASKPASS_MAIN: string;
|
|
||||||
HOMEBREW_PREFIX: string;
|
|
||||||
npm_config_cache: string;
|
|
||||||
LESS: string;
|
|
||||||
LOGNAME: string;
|
|
||||||
npm_lifecycle_script: string;
|
|
||||||
VSCODE_GIT_IPC_HANDLE: string;
|
|
||||||
NVM_BIN: string;
|
|
||||||
npm_config_user_agent: string;
|
|
||||||
VSCODE_GIT_ASKPASS_NODE: string;
|
|
||||||
GIT_ASKPASS: string;
|
|
||||||
INFOPATH: string;
|
|
||||||
HOMEBREW_CELLAR: string;
|
|
||||||
npm_node_execpath: string;
|
|
||||||
npm_config_prefix: string;
|
|
||||||
COLORTERM: string;
|
|
||||||
NODE_ENV: string;
|
|
||||||
[key: `PUBLIC_${string}`]: undefined;
|
|
||||||
[key: `${string}`]: string | undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Similar to [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
|
||||||
*
|
|
||||||
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
|
|
||||||
*
|
|
||||||
* Dynamic environment variables cannot be used during prerendering.
|
|
||||||
*
|
|
||||||
* ```ts
|
|
||||||
* import { env } from '$env/dynamic/public';
|
|
||||||
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
declare module '$env/dynamic/public' {
|
|
||||||
export const env: {
|
|
||||||
[key: `PUBLIC_${string}`]: string | undefined;
|
|
||||||
}
|
|
||||||
}
|
|
25
.svelte-kit/non-ambient.d.ts
vendored
25
.svelte-kit/non-ambient.d.ts
vendored
|
@ -1,25 +0,0 @@
|
||||||
|
|
||||||
// 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 {};
|
|
|
@ -1,49 +0,0 @@
|
||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"paths": {
|
|
||||||
"$lib": [
|
|
||||||
"../src/lib"
|
|
||||||
],
|
|
||||||
"$lib/*": [
|
|
||||||
"../src/lib/*"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"rootDirs": [
|
|
||||||
"..",
|
|
||||||
"./types"
|
|
||||||
],
|
|
||||||
"verbatimModuleSyntax": true,
|
|
||||||
"isolatedModules": true,
|
|
||||||
"lib": [
|
|
||||||
"esnext",
|
|
||||||
"DOM",
|
|
||||||
"DOM.Iterable"
|
|
||||||
],
|
|
||||||
"moduleResolution": "bundler",
|
|
||||||
"module": "esnext",
|
|
||||||
"noEmit": true,
|
|
||||||
"target": "esnext"
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"ambient.d.ts",
|
|
||||||
"non-ambient.d.ts",
|
|
||||||
"./types/**/$types.d.ts",
|
|
||||||
"../vite.config.js",
|
|
||||||
"../vite.config.ts",
|
|
||||||
"../src/**/*.js",
|
|
||||||
"../src/**/*.ts",
|
|
||||||
"../src/**/*.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"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,28 +0,0 @@
|
||||||
{
|
|
||||||
"/": [
|
|
||||||
"src/routes/+layout.js",
|
|
||||||
"src/routes/+layout.server.js",
|
|
||||||
"src/routes/+layout.js",
|
|
||||||
"src/routes/+layout.server.js"
|
|
||||||
],
|
|
||||||
"/about": [
|
|
||||||
"src/routes/+layout.js",
|
|
||||||
"src/routes/+layout.server.js"
|
|
||||||
],
|
|
||||||
"/donate": [
|
|
||||||
"src/routes/+layout.js",
|
|
||||||
"src/routes/+layout.server.js"
|
|
||||||
],
|
|
||||||
"/privacy-policy": [
|
|
||||||
"src/routes/+layout.js",
|
|
||||||
"src/routes/+layout.server.js"
|
|
||||||
],
|
|
||||||
"/terms-of-service": [
|
|
||||||
"src/routes/+layout.js",
|
|
||||||
"src/routes/+layout.server.js"
|
|
||||||
],
|
|
||||||
"/viewer": [
|
|
||||||
"src/routes/+layout.js",
|
|
||||||
"src/routes/+layout.server.js"
|
|
||||||
]
|
|
||||||
}
|
|
30
.svelte-kit/types/src/routes/$types.d.ts
vendored
30
.svelte-kit/types/src/routes/$types.d.ts
vendored
|
@ -1,30 +0,0 @@
|
||||||
import type * as Kit from '@sveltejs/kit';
|
|
||||||
|
|
||||||
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
|
||||||
// @ts-ignore
|
|
||||||
type MatcherParam<M> = M extends (param : string) => param is infer U ? U extends string ? U : string : 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 | "/" | "/about" | "/donate" | "/privacy-policy" | "/terms-of-service" | "/viewer" | null
|
|
||||||
type LayoutParams = RouteParams & { }
|
|
||||||
type LayoutServerParentData = EnsureDefined<{}>;
|
|
||||||
type LayoutParentData = EnsureDefined<{}>;
|
|
||||||
|
|
||||||
export type PageServerData = null;
|
|
||||||
export type PageData = Expand<PageParentData>;
|
|
||||||
export type PageProps = { data: PageData }
|
|
||||||
export type LayoutServerLoad<OutputData extends Partial<App.PageData> & Record<string, any> | void = Partial<App.PageData> & Record<string, any> | void> = Kit.ServerLoad<LayoutParams, LayoutServerParentData, OutputData, LayoutRouteId>;
|
|
||||||
export type LayoutServerLoadEvent = Parameters<LayoutServerLoad>[0];
|
|
||||||
export type LayoutServerData = Expand<OptionalUnion<EnsureDefined<Kit.LoadProperties<Awaited<ReturnType<typeof import('./proxy+layout.server.js').load>>>>>>;
|
|
||||||
export type LayoutLoad<OutputData extends OutputDataShape<LayoutParentData> = OutputDataShape<LayoutParentData>> = Kit.Load<LayoutParams, LayoutServerData, LayoutParentData, OutputData, LayoutRouteId>;
|
|
||||||
export type LayoutLoadEvent = Parameters<LayoutLoad>[0];
|
|
||||||
export type LayoutData = Expand<Omit<LayoutParentData, keyof Kit.LoadProperties<Awaited<ReturnType<typeof import('./proxy+layout.js').load>>>> & OptionalUnion<EnsureDefined<Kit.LoadProperties<Awaited<ReturnType<typeof import('./proxy+layout.js').load>>>>>>;
|
|
||||||
export type LayoutProps = { data: LayoutData; children: import("svelte").Snippet }
|
|
||||||
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
|
18
.svelte-kit/types/src/routes/about/$types.d.ts
vendored
18
.svelte-kit/types/src/routes/about/$types.d.ts
vendored
|
@ -1,18 +0,0 @@
|
||||||
import type * as Kit from '@sveltejs/kit';
|
|
||||||
|
|
||||||
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
|
||||||
// @ts-ignore
|
|
||||||
type MatcherParam<M> = M extends (param : string) => param is infer U ? U extends string ? U : string : string;
|
|
||||||
type RouteParams = { };
|
|
||||||
type RouteId = '/about';
|
|
||||||
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<import('../$types.js').LayoutData>;
|
|
||||||
|
|
||||||
export type PageServerData = null;
|
|
||||||
export type PageData = Expand<PageParentData>;
|
|
||||||
export type PageProps = { data: PageData }
|
|
18
.svelte-kit/types/src/routes/donate/$types.d.ts
vendored
18
.svelte-kit/types/src/routes/donate/$types.d.ts
vendored
|
@ -1,18 +0,0 @@
|
||||||
import type * as Kit from '@sveltejs/kit';
|
|
||||||
|
|
||||||
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
|
||||||
// @ts-ignore
|
|
||||||
type MatcherParam<M> = M extends (param : string) => param is infer U ? U extends string ? U : string : string;
|
|
||||||
type RouteParams = { };
|
|
||||||
type RouteId = '/donate';
|
|
||||||
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<import('../$types.js').LayoutData>;
|
|
||||||
|
|
||||||
export type PageServerData = null;
|
|
||||||
export type PageData = Expand<PageParentData>;
|
|
||||||
export type PageProps = { data: PageData }
|
|
18
.svelte-kit/types/src/routes/viewer/$types.d.ts
vendored
18
.svelte-kit/types/src/routes/viewer/$types.d.ts
vendored
|
@ -1,18 +0,0 @@
|
||||||
import type * as Kit from '@sveltejs/kit';
|
|
||||||
|
|
||||||
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
|
||||||
// @ts-ignore
|
|
||||||
type MatcherParam<M> = M extends (param : string) => param is infer U ? U extends string ? U : string : string;
|
|
||||||
type RouteParams = { };
|
|
||||||
type RouteId = '/viewer';
|
|
||||||
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<import('../$types.js').LayoutData>;
|
|
||||||
|
|
||||||
export type PageServerData = null;
|
|
||||||
export type PageData = Expand<PageParentData>;
|
|
||||||
export type PageProps = { data: PageData }
|
|
Loading…
Add table
Reference in a new issue