Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://github.com/RicoSuter/NSwag/wiki/TypeScriptClientGenerator
- aggiungere in nswag
- extensionCode: "path.file.ts"
- clientBaseClass : "ServiceBase"
- creo un file path.file.ts ( non aggiungere import in test perchè viene solo copiato un testa a client.ts generato )
- ```ts
- export class ServiceBase {
- protected transformResult(url: string, response: AxiosResponse, processor: (response: AxiosResponse) => Promise<any>): Promise<any> {
- response.data= response.data.result;
- return processor(response);
- }
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement