StaticaddInserts the generated file header at the beginning of a source file.
Must be called after all other modifications and before formatText() to preserve header position.
The ts-morph SourceFile instance to modify.
The OpenAPI specification title.
The OpenAPI specification version.
StaticgetGenerates the standard header string for all emitted files.
Includes:
tslint, eslint) to suppress false positives on generated code.The title from the OpenAPI specification's info.title field.
The version from the OpenAPI specification's info.version field.
The header string to prepend to generated source files.
Helper class to manage standard file headers for generated code.
Embeds linting disable directives and generation metadata (CLI version, OpenAPI spec info) to identify generated artifacts and suppress linter warnings on synthesized code.