@tinyhttp/res
Version:
response extensions for tinyhttp
11 lines • 458 B
TypeScript
export type NormalizedType = {
value: string;
quality?: number;
params: Record<string, string>;
originalIndex?: number;
};
export declare function acceptParams(str: string, index?: number): NormalizedType;
export declare const normalizeType: (type: string) => NormalizedType;
export declare function normalizeTypes(types: string[]): NormalizedType[];
export declare function escapeHTML(str: string): string;
//# sourceMappingURL=util.d.ts.map