uno-react
Version:
Common functions, and hooks for React.
6 lines (5 loc) • 407 B
TypeScript
export type key = string | number | null;
export declare const getBaseUrl: (windowLocation: Location) => string;
export declare const resetBaseUrl: (window: Window) => void;
export declare const buildUrl: (keys?: string | string[], values?: key | key[]) => string | null;
export declare const useUrlId: (idName: string | string[], window: Window) => [key | key[], (value: key | key[]) => void, () => void];