swagger-typescript-api
swagger-typescript-api copied to clipboard
apiClassName can not be cutomized when modular is true
It seems no option named "apiClassName" for the generateApi function, and I also try to set name to 'CustomizedAPI', and add a hook to alter the api class name,
hooks: {
onPrepareConfig: (currentConfiguration) => {
return {
...currentConfiguration,
config: {
...currentConfiguration.config,
apiClassName: 'CustomizedAPI'
}
}
},
}
Hi! Any updates?
I found that I can pass apiClassName as a generateApi option as long as I flag it with // @ts-ignore and it will successfully apply to the output. I haven't dug into the package yet to see if this is a simple fix to the type declarations or not.