Newer
Older
alert / js / node_modules / @polka / url / index.d.ts
@Réz István Réz István on 18 Nov 2021 305 bytes first commit
import type { IncomingMessage } from 'http';
import type { ParsedUrlQuery } from 'querystring';

export interface ParsedURL {
	pathname: string;
	search: string;
	query: Record<string, string | string[]> | void;
	raw: string;
}

export function parse(req: IncomingMessage, toDecode?: boolean): ParsedURL;