FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
openapi-typescript-codegen/src/utils/postProcessService.ts at main · thulium/openapi-typescript-codegen · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
thulium
/
openapi-typescript-codegen
Public
forked from
ferdikoomen/openapi-typescript-codegen
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
21
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
openapi-typescript-codegen
/
src
/
utils
/
postProcessService.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (12 loc) · 552 Bytes
Breadcrumbs
openapi-typescript-codegen
/
src
/
utils
/
postProcessService.ts
Copy path
File metadata and controls
13 lines (12 loc) · 552 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
import
type
{
Service
}
from
'../client/interfaces/Service'
;
import
{
postProcessServiceImports
}
from
'./postProcessServiceImports'
;
import
{
postProcessServiceOperations
}
from
'./postProcessServiceOperations'
;
export
const
postProcessService
=
(
service
:
Service
)
:
Service
=>
{
const
clone
=
{
...
service
}
;
clone
.
operations
=
postProcessServiceOperations
(
clone
)
;
clone
.
operations
.
forEach
(
operation
=>
{
clone
.
imports
.
push
(
...
operation
.
imports
)
;
}
)
;
clone
.
imports
=
postProcessServiceImports
(
clone
)
;
return
clone
;
}
;
Back
|
FazBrowse Home
|
New Git URL