File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments