Frontend/25_02_24/node_modules/@tinyhttp/url/dist/index.d.ts

14 lines
474 B
TypeScript
Raw Normal View History

2025-02-25 08:55:29 +00:00
/// <reference types="node" />
import { ParsedUrlQuery } from 'node:querystring';
type Regex = {
keys: string[] | false;
pattern: RegExp;
};
export declare const getURLParams: ({ pattern, keys }: Regex, reqUrl?: string) => URLParams;
export type URLParams = {
[key: string]: string;
};
export declare const getPathname: (url: string) => string;
export declare const getQueryParams: (url?: string) => ParsedUrlQuery;
export {};
//# sourceMappingURL=index.d.ts.map