@oazapfts/runtime
Version:
Runtime for OpenApi TypeScript client generator
20 lines (13 loc) • 708 B
TypeScript
export declare const allowReserved: (typeof encodeURI)[];
/**
* Separate array values by the given delimiter.
*/
export declare function delimited(delimiter?: string): (params: Record<string, any>, encoders?: (typeof encodeURIComponent)[]) => string;
/**
* Creates a tag-function to encode template strings with the given encoders.
*/
export declare function encode(encoders: Encoders, delimiter?: string): (strings: TemplateStringsArray, ...values: any[]) => string;
export declare const encodeReserved: (typeof encodeURIComponent)[];
declare type Encoders = Array<(s: string) => string>;
export declare function joinUrl(...parts: Array<string | undefined>): string;
export { }