Skip to content

Commit 1559644

Browse files
committed
chore: fmt
1 parent 1e9cddc commit 1559644

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

main.ts

+11-8
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const args = parseArgs(Deno.args, {
3939

4040
console.error(
4141
`Unknown option: ${arg}\n` +
42-
`Run typefetch --help to see a list of available options`,
42+
`Run typefetch --help to see a list of available options`,
4343
);
4444
Deno.exit(1);
4545
},
@@ -72,7 +72,7 @@ if (args.version) {
7272
if (args._.length !== 1 || empty(args._[0])) {
7373
console.error(
7474
`Expected a single OpenAPI schema to transform\n` +
75-
`Run typefetch --help for more information`,
75+
`Run typefetch --help for more information`,
7676
);
7777
Deno.exit(1);
7878
}
@@ -115,23 +115,26 @@ const source = project.createSourceFile(output, undefined, {
115115

116116
source.addImportDeclaration({
117117
isTypeOnly: true,
118-
moduleSpecifier: `${args["import"]}/types/json${URL.canParse(args["import"]) ? ".ts" : ""
119-
}`,
118+
moduleSpecifier: `${args["import"]}/types/json${
119+
URL.canParse(args["import"]) ? ".ts" : ""
120+
}`,
120121
namedImports: ["JSONString"],
121122
});
122123

123124
source.addImportDeclaration({
124125
isTypeOnly: true,
125-
moduleSpecifier: `${args["import"]}/types/headers${URL.canParse(args["import"]) ? ".ts" : ""
126-
}`,
126+
moduleSpecifier: `${args["import"]}/types/headers${
127+
URL.canParse(args["import"]) ? ".ts" : ""
128+
}`,
127129
namedImports: ["TypedHeadersInit"],
128130
});
129131

130132
if (options.experimentalURLSearchParams) {
131133
source.addImportDeclaration({
132134
isTypeOnly: true,
133-
moduleSpecifier: `${args["import"]}/types/urlsearchparams${URL.canParse(args["import"]) ? ".ts" : ""
134-
}`,
135+
moduleSpecifier: `${args["import"]}/types/urlsearchparams${
136+
URL.canParse(args["import"]) ? ".ts" : ""
137+
}`,
135138
namedImports: ["URLSearchParamsString"],
136139
});
137140
}

0 commit comments

Comments
 (0)