@infinite-debugger/swagger-to-ts
Version:
swagger-to-ts is a powerful library that allows you to generate TypeScript code from Swagger documentation or OpenAPI specifications. It simplifies the process of integrating API definitions into your TypeScript projects, saving you time and effort.
10 lines (9 loc) • 320 B
TypeScript
import { z } from 'zod';
import { Content } from './Content';
export declare const ResponseValidationSchema: any;
export type Response = {
content?: Content;
description?: string;
};
export declare const ResponsesValidationSchema: z.ZodRecord<z.ZodString, any>;
export type Responses = Record<string, Response>;