FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
openapi-typescript-codegen/src/utils/postProcessClient.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
/
postProcessClient.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (14 loc) · 525 Bytes
Breadcrumbs
openapi-typescript-codegen
/
src
/
utils
/
postProcessClient.ts
Copy path
File metadata and controls
15 lines (14 loc) · 525 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
14
15
import
type
{
Client
}
from
'../client/interfaces/Client'
;
import
{
postProcessModel
}
from
'./postProcessModel'
;
import
{
postProcessService
}
from
'./postProcessService'
;
/**
* Post process client
*
@param
client Client object with all the models, services, etc.
*/
export
const
postProcessClient
=
(
client
:
Client
)
:
Client
=>
{
return
{
...
client
,
models
:
client
.
models
.
map
(
model
=>
postProcessModel
(
model
)
)
,
services
:
client
.
services
.
map
(
service
=>
postProcessService
(
service
)
)
,
}
;
}
;
Back
|
FazBrowse Home
|
New Git URL