Skip to content

GenerateSwaggerCmd

@tsed/cli-generate-swagger

Usage

typescript
import { GenerateSwaggerCmd } from "@tsed/cli-generate-swagger";

See /packages/cli-generate-swagger/src/commands/GenerateSwaggerCmd.ts.

Overview

ts
class GenerateSwaggerCmd implements CommandProvider {
    protected fs: CliFs;
    protected cliYaml: CliYaml;
    protected serverModule: Type<any> | undefined;
    $mapContext($ctx: GenerateSwaggerCtx): {
        output: string;
    };
    $exec($ctx: GenerateSwaggerCtx): {
        title: string;
        task: () => Promise<void>;
    }[];
    
}

protected fs

ts
protected fs: CliFs;

protected cliYaml

ts
protected cliYaml: CliYaml;

protected serverModule

ts
protected serverModule: Type<any> | undefined;

$mapContext

ts
$mapContext($ctx: GenerateSwaggerCtx): {
     output: string;
 };

$exec

ts
$exec($ctx: GenerateSwaggerCtx): {
     title: string;
     task: () => Promise<void>;
 }[];

Released under the MIT License.