jvcgpt / src /utils /route.ts
Greums's picture
first alpha version
1982de5
raw
history blame
243 Bytes
export const routes = {
home: "home",
topic: "topic",
settings: "settings",
} as const;
export type Route = typeof routes[keyof typeof routes];
export type RouteSetter = (route: Route, page?: number, id?: string) => void;