File tree 1 file changed +2
-3
lines changed
packages/ts/generator-plugin-signals/src
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function extractEndpointMethodsWithSignalsAsReturnType(storage: SharedStorage):
16
16
const response200 = pathObject ?. post ?. responses [ '200' ] ;
17
17
return response200 && ! ( '$ref' in response200 ) ;
18
18
} )
19
- . map ( ( [ path , pathObject ] ) => {
19
+ . flatMap ( ( [ path , pathObject ] ) => {
20
20
const response200 = pathObject ?. post ?. responses [ '200' ] ;
21
21
const responseSchema = ( response200 as OpenAPIV3 . ResponseObject ) . content ?. [ 'application/json' ] ?. schema ;
22
22
@@ -29,8 +29,7 @@ function extractEndpointMethodsWithSignalsAsReturnType(storage: SharedStorage):
29
29
} ) )
30
30
: [ ] ;
31
31
} )
32
- . filter ( ( signalArray ) => signalArray !== undefined )
33
- . reduce < PathSignalType [ ] > ( ( acc , current ) => acc . concat ( current ) , [ ] ) ;
32
+ . filter ( ( signalArray ) => signalArray !== undefined ) ;
34
33
}
35
34
36
35
function groupByService ( signals : readonly PathSignalType [ ] ) : Map < string , Map < string , string > > {
You can’t perform that action at this time.
0 commit comments