UNPKG

swagger-typescript-generator

Version:

Generate typescript code from swagger.json. Before start this project I try use [swagger-typescript-codegen](https://github.com/mtennoe/swagger-typescript-codegen) based on [mustache templates](https://github.com/mtennoe/swagger-js-codegen/tree/master/lib

23 lines (22 loc) 754 B
import { ISwaggerMethod, SwaggerMethod } from "./swagger-method"; import { SwaggerDoc } from "./swagger-doc"; import { SwaggerPath } from "./swagger-path"; import { SwaggerBase } from "./swagger-base"; import { SwaggerBasePrivateProps } from "./swagger-base-private-props"; export interface ISwaggerClass { name: string; fileName: string; tag: string; methods: ISwaggerMethod[]; } interface PrivateProps extends SwaggerBasePrivateProps<SwaggerDoc> { } export declare class SwaggerClass extends SwaggerBase<SwaggerDoc, PrivateProps> { name: string; fileName: string; tag: string; methods: SwaggerMethod[]; constructor(parent: SwaggerDoc, name: string, source: any, paths: SwaggerPath[]); init(): void; } export {};