UNPKG

hono

Version:

Web framework built on Web Standards

24 lines (23 loc) 1.09 kB
/** * @module * URL utility. */ export type Pattern = readonly [ string, string, RegExp | true ] | "*"; export declare const splitPath: (path: string) => string[]; export declare const splitRoutingPath: (routePath: string) => string[]; export declare const getPattern: (label: string, next?: string) => Pattern | null; type Decoder = (str: string) => string; export declare const tryDecode: (str: string, decoder: Decoder) => string; export declare const getPath: (request: Request) => string; export declare const getQueryStrings: (url: string) => string; export declare const getPathNoStrict: (request: Request) => string; export declare const mergePath: (...paths: string[]) => string; export declare const checkOptionalParameter: (path: string) => string[] | null; export declare const getQueryParam: (url: string, key?: string) => string | undefined | Record<string, string>; export declare const getQueryParams: (url: string, key?: string) => string[] | undefined | Record<string, string[]>; export declare const decodeURIComponent_: typeof decodeURIComponent; export {};