Add js web stuff to landing page + documentation
This commit is contained in:
24
go/jsruntime/runtime/@solidjs/router/dist/routers/MemoryRouter.d.ts
vendored
Normal file
24
go/jsruntime/runtime/@solidjs/router/dist/routers/MemoryRouter.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { LocationChange } from "../types.js";
|
||||
import type { BaseRouterProps } from "./components.js";
|
||||
import type { JSX } from "solid-js";
|
||||
export type MemoryHistory = {
|
||||
get: () => string;
|
||||
set: (change: LocationChange) => void;
|
||||
go: (delta: number) => void;
|
||||
listen: (listener: (value: string) => void) => () => void;
|
||||
};
|
||||
export declare function createMemoryHistory(): {
|
||||
get: () => string;
|
||||
set: ({ value, scroll, replace }: LocationChange) => void;
|
||||
back: () => void;
|
||||
forward: () => void;
|
||||
go: (n: number) => void;
|
||||
listen: (listener: (value: string) => void) => () => void;
|
||||
};
|
||||
export type MemoryRouterProps = BaseRouterProps & {
|
||||
history?: MemoryHistory;
|
||||
actionBase?: string;
|
||||
explicitLinks?: boolean;
|
||||
preload?: boolean;
|
||||
};
|
||||
export declare function MemoryRouter(props: MemoryRouterProps): JSX.Element;
|
||||
Reference in New Issue
Block a user