UNPKG

rjweb-server

Version:

Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS

7 lines (6 loc) 468 B
import ValueCollection from "../classes/ValueCollection"; export declare const trimString: (str: string) => string; /** * Efficiently parse Key-Value Strings into ValueCollections * @since 7.0.0 */ export default function parseKV<Type extends 'ValueCollection' | 'Object'>(type: Type, keyValue: string, equal?: string, splitter?: string, decode?: typeof decodeURIComponent): Type extends 'ValueCollection' ? ValueCollection<string, string> : Record<string, string>;