@tempots/ui
Version:
Provides a higher level of renderables to help fast development with Tempo.
16 lines (15 loc) • 694 B
TypeScript
import { Prop } from '@tempots/dom';
import { NavigationOptions } from './navigation-options';
import { LocationData } from './location-data';
type HistoryAction = 'pushState' | 'replaceState';
export type BrowserLocationSource = {
location: Prop<LocationData>;
dispose: () => void;
commit: (data: LocationData, options: NavigationOptions | undefined, action: HistoryAction) => void;
go: (delta: number, options?: NavigationOptions) => void;
back: (options?: NavigationOptions) => void;
forward: (options?: NavigationOptions) => void;
resolve: (url: string) => LocationData;
};
export declare const makeBrowserLocationSource: () => BrowserLocationSource;
export {};