loveurl
Version:
A url builder and parser pack for handling url states in an easy way.(Beta Version)
15 lines (12 loc) • 540 B
TypeScript
import { P as ParamsObject } from '../buildSearchParams-CoXCbsqo.js';
import './encodeDecodePrimitives.js';
type LoveUrlOptions = {
currentParams?: string | null | undefined;
anchor?: string | null;
persistAnchor?: boolean;
url?: string;
relative?: boolean;
};
declare const loveUrl: <T>(newParams: ParamsObject<T>, { url, currentParams, anchor, persistAnchor, relative, }?: LoveUrlOptions) => string;
type LoveUrlParams<T> = Parameters<typeof loveUrl<T>>;
export { type LoveUrlOptions, type LoveUrlParams, loveUrl };