From 1559644229d3b2f3f35a1453c8f98da3d1ee81e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Tue, 24 Sep 2024 14:48:32 +0200 Subject: [PATCH] chore: fmt --- main.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/main.ts b/main.ts index df2f8c5..1103d65 100644 --- a/main.ts +++ b/main.ts @@ -39,7 +39,7 @@ const args = parseArgs(Deno.args, { console.error( `Unknown option: ${arg}\n` + - `Run typefetch --help to see a list of available options`, + `Run typefetch --help to see a list of available options`, ); Deno.exit(1); }, @@ -72,7 +72,7 @@ if (args.version) { if (args._.length !== 1 || empty(args._[0])) { console.error( `Expected a single OpenAPI schema to transform\n` + - `Run typefetch --help for more information`, + `Run typefetch --help for more information`, ); Deno.exit(1); } @@ -115,23 +115,26 @@ const source = project.createSourceFile(output, undefined, { source.addImportDeclaration({ isTypeOnly: true, - moduleSpecifier: `${args["import"]}/types/json${URL.canParse(args["import"]) ? ".ts" : "" - }`, + moduleSpecifier: `${args["import"]}/types/json${ + URL.canParse(args["import"]) ? ".ts" : "" + }`, namedImports: ["JSONString"], }); source.addImportDeclaration({ isTypeOnly: true, - moduleSpecifier: `${args["import"]}/types/headers${URL.canParse(args["import"]) ? ".ts" : "" - }`, + moduleSpecifier: `${args["import"]}/types/headers${ + URL.canParse(args["import"]) ? ".ts" : "" + }`, namedImports: ["TypedHeadersInit"], }); if (options.experimentalURLSearchParams) { source.addImportDeclaration({ isTypeOnly: true, - moduleSpecifier: `${args["import"]}/types/urlsearchparams${URL.canParse(args["import"]) ? ".ts" : "" - }`, + moduleSpecifier: `${args["import"]}/types/urlsearchparams${ + URL.canParse(args["import"]) ? ".ts" : "" + }`, namedImports: ["URLSearchParamsString"], }); }