curlconverter
Version:
convert curl commands to Python, JavaScript, Go, PHP and more
9 lines (8 loc) • 627 B
TypeScript
import { Word } from "../../shell/Word.js";
import type { Request, Warnings } from "../../parse.js";
import { type JSImports } from "./javascript.js";
export declare const supportedArgs: Set<string>;
export declare function getDataString(data: Word, contentType: string | null | undefined, imports: JSImports): [string, string | null];
export declare function _toJavaScriptXHR(requests: Request[], warnings?: Warnings): string;
export declare function toJavaScriptXHRWarn(curlCommand: string | string[], warnings?: Warnings): [string, Warnings];
export declare function toJavaScriptXHR(curlCommand: string | string[]): string;