UNPKG

openapi-ts-generator

Version:

Based on swagger-ts-generator, this is a type script model generator specifically for services with OpenApi spec documentation.

11 lines (10 loc) 572 B
import { IGeneratorOptions } from '../models/generator-options'; export declare abstract class BaseGenerator<TContextSchema> { readonly generatorOptions: IGeneratorOptions; readonly templateFilePath: string | undefined; abstract readonly GeneratorName: string; readonly template?: HandlebarsTemplateDelegate<TContextSchema>; readonly emptyArrayRegex: RegExp; constructor(generatorOptions: IGeneratorOptions, templateFilePath: string | undefined); protected generateFile(outputFilePath: string, context: TContextSchema | null): string | null; }