restructure project, add claudemd
This commit is contained in:
27
web/runtime/@solidjs/router/dist/routers/components.d.ts
vendored
Normal file
27
web/runtime/@solidjs/router/dist/routers/components.d.ts
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { Component, JSX } from "solid-js";
|
||||
import type { MatchFilters, RouteDefinition, RoutePreloadFunc, RouterIntegration, RouteSectionProps } from "../types.js";
|
||||
export type BaseRouterProps = {
|
||||
base?: string;
|
||||
/**
|
||||
* A component that wraps the content of every route.
|
||||
*/
|
||||
root?: Component<RouteSectionProps>;
|
||||
rootPreload?: RoutePreloadFunc;
|
||||
singleFlight?: boolean;
|
||||
children?: JSX.Element | RouteDefinition | RouteDefinition[];
|
||||
transformUrl?: (url: string) => string;
|
||||
/** @deprecated use rootPreload */
|
||||
rootLoad?: RoutePreloadFunc;
|
||||
};
|
||||
export declare const createRouterComponent: (router: RouterIntegration) => (props: BaseRouterProps) => JSX.Element;
|
||||
export type RouteProps<S extends string, T = unknown> = {
|
||||
path?: S | S[];
|
||||
children?: JSX.Element;
|
||||
preload?: RoutePreloadFunc<T>;
|
||||
matchFilters?: MatchFilters<S>;
|
||||
component?: Component<RouteSectionProps<T>>;
|
||||
info?: Record<string, any>;
|
||||
/** @deprecated use preload */
|
||||
load?: RoutePreloadFunc<T>;
|
||||
};
|
||||
export declare const Route: <S extends string, T = unknown>(props: RouteProps<S, T>) => JSX.Element;
|
||||
Reference in New Issue
Block a user