kequapp
Version:
A minimal, zero-magic Node web framework built on native APIs
10 lines (9 loc) • 712 B
TypeScript
import type { TParams, TPathname } from '../../types.ts';
export declare function extractMethod(params: unknown[], method?: string): string;
export declare function extractUrl(params: unknown[], url?: TPathname): TPathname;
export declare function extractContentType(params: unknown[], contentType?: string): string | undefined;
export declare function extractActions<T>(params: unknown[]): T[];
export declare function extractOptions<T>(params: unknown[], defaultOptions?: Partial<T>): T;
export declare function getParts(pathname?: string): string[];
export declare function getParams(clientParts: string[], parts: string[]): TParams;
export declare function matchGroups(url: string, regexp: RegExp): TParams;