sveltekit_shim_app_paths.ts

This file is created dynamically by render_sveltekit_shim_app_paths but exists here for the sake of the Node loader. There may be a cleaner workaround but I couldn't find it. @see https://github.com/nodejs/loaders for details about the forthcoming virtual file support

view source

Declarations
#

3 declarations

asset
#

sveltekit_shim_app_paths.ts view source

(file: ".nojekyll" | "CNAME" | "favicon.png" | "logo.svg" | "robots.txt"): string import {asset} from '@fuzdev/gro/sveltekit_shim_app_paths.js';

file

type AssetPath

returns

string

match
#

sveltekit_shim_app_paths.ts view source

(url: string | URL): Promise<{ id: "/"; params: Record<string, never>; } | { id: "/about"; params: Record<string, never>; } | { id: "/docs"; params: Record<string, never>; } | ... 5 more ... | null> import {match} from '@fuzdev/gro/sveltekit_shim_app_paths.js';

url

type string | URL

returns

Promise<{ id: "/"; params: Record<string, never>; } | { id: "/about"; params: Record<string, never>; } | { id: "/docs"; params: Record<string, never>; } | { id: "/docs/api"; params: Record<string, never>; } | { id: "/docs/api/[...module_path]"; params: { module_path: string; }; } | { id: "/docs/introduction"; params: Record<string, never>; } | { id: "/docs/library"; params: Record<string, never>; } | { id: "/history"; params: Record<string, never>; } | null>

resolve
#

sveltekit_shim_app_paths.ts view source

<T extends RouteIdWithSearchOrHash | PathnameWithSearchOrHash>(...args: ResolveArgs<T>): "/" | "/about" | "/docs" | "/docs/api" | "/docs/introduction" | "/docs/library" | ... 9 more ... | `/${string}/history` import {resolve} from '@fuzdev/gro/sveltekit_shim_app_paths.js';

args

type ResolveArgs<T>

returns

ResolvedPathname