in src/exporters/javascript.ts [36:48]
async convert(
requests: ParsedRequest[],
options: ConvertOptions,
): Promise<string> {
if (!(await this.check(requests))) {
throw new Error("Cannot perform conversion");
}
const output = this.template({ requests, ...options });
return prettier.format(output, {
parser: "typescript",
plugins: [prettierTypeScript],
});
}