Skip to content

Commit 4429ac3

Browse files
committed
style: 💄 run Prettier
1 parent c8d9379 commit 4429ac3

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/typescript/converter.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,7 @@ export function toTypeScriptAst(schema: schema.Schema): ts.TsType {
147147
const node: ts.TsTypeReference = {
148148
node: 'TypeReference',
149149
typeName: 'Record',
150-
typeArguments: [
151-
{node: 'StringKeyword'},
152-
toTypeScriptAst(mapSchema.type),
153-
],
150+
typeArguments: [{node: 'StringKeyword'}, toTypeScriptAst(mapSchema.type)],
154151
};
155152
return node;
156153
}
@@ -178,7 +175,7 @@ export function toTypeScriptAst(schema: schema.Schema): ts.TsType {
178175
// Extract schemas from the type instances
179176
const reqSchema = (fnSchema.req as any).getSchema ? (fnSchema.req as any).getSchema() : fnSchema.req;
180177
const resSchema = (fnSchema.res as any).getSchema ? (fnSchema.res as any).getSchema() : fnSchema.res;
181-
178+
182179
const node: ts.TsFunctionType = {
183180
node: 'FunctionType',
184181
parameters: [
@@ -207,7 +204,7 @@ export function toTypeScriptAst(schema: schema.Schema): ts.TsType {
207204
// Extract schemas from the type instances
208205
const reqSchema = (fnSchema.req as any).getSchema ? (fnSchema.req as any).getSchema() : fnSchema.req;
209206
const resSchema = (fnSchema.res as any).getSchema ? (fnSchema.res as any).getSchema() : fnSchema.res;
210-
207+
211208
const node: ts.TsFunctionType = {
212209
node: 'FunctionType',
213210
parameters: [
@@ -244,4 +241,4 @@ export function toTypeScriptAst(schema: schema.Schema): ts.TsType {
244241
return node;
245242
}
246243
}
247-
}
244+
}

0 commit comments

Comments
 (0)