@oazapfts/runtime
Version:
Runtime for OpenApi TypeScript client generator
22 lines (14 loc) • 806 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 | number | boolean) => string>;
export declare function joinUrl(...parts: Array<string | undefined>): string;
export declare const numericBooleanReserved: (typeof encodeURIComponent)[];
export { }