ng-openapi-gen
Version:
An OpenAPI 3.0 and 3.1 codegen for Angular 16+
33 lines (32 loc) • 1.32 kB
TypeScript
import { Importable } from './importable';
import { Import } from './imports';
import { ReferenceObject, SchemaObject } from './openapi-typings';
import { Options } from './options';
/**
* Base definitions of a generated type
*/
export declare abstract class GenType {
name: string;
options: Options;
/** Name of the generated type / class */
typeName: string;
/** Namespace, separated by '/' */
namespace?: string;
/** Camel-case qualified name of the type, including namespace */
qualifiedName: string;
/** Name of the generated file */
fileName: string;
/** TypeScript comments for this type */
tsComments: string;
pathToRoot: string;
imports: Import[];
private _imports;
additionalDependencies: string[];
private _additionalDependencies;
constructor(name: string, typeNameTransform: (typeName: string, options: Options) => string, options: Options);
protected addImport(param: string | Importable | null | undefined, typeOnly?: boolean): void;
protected abstract skipImport(name: string | Importable): boolean;
protected abstract initPathToRoot(): string;
protected updateImports(): void;
protected collectImports(schema: SchemaObject | ReferenceObject | undefined, additional?: boolean, processOneOf?: boolean): void;
}