Open pc00001 opened 5 months ago
Can you please try this once -
if (status === 200) { // Assuming result200 is defined earlier in the code return Promise.resolve<SwaggerResponse<FileUploadMetadata[]>>(new SwaggerResponse<FileUploadMetadata[]>(status, _headers, result200)); } else if (status !== 204) { const _responseText = response.data; // Handle other statuses as needed }
We use a swagger gen .ts file in our project.
When using storybook 8.0.8 the following issue is reported SyntaxError: .\src\Api\v1_0.swagger.ts: Unexpected token (2716:112)
2714 | result200 =null;
2715 | }