Skip to content

TypeORMInitHook

@tsed/cli-plugin-typeorm

Usage ​

typescript
import { TypeORMInitHook } from "@tsed/cli-plugin-typeorm";

See /packages/cli-plugin-typeorm/src/hooks/TypeORMInitHook.ts.

Overview ​

ts
class TypeORMInitHook implements CliCommandHooks {
    protected cliService: CliService;
    $alterPackageJson(packageJson: ProjectPackageJson, data: RenderDataContext): ProjectPackageJson;
    $alterInitSubTasks(tasks: Task[], data: RenderDataContext): Promise<Task<any>[]>;
}

protected cliService ​

ts
protected cliService: CliService;

$alterPackageJson ​

ts
$alterPackageJson(packageJson: ProjectPackageJson, data: RenderDataContext): ProjectPackageJson;

$alterInitSubTasks ​

ts
$alterInitSubTasks(tasks: Task[], data: RenderDataContext): Promise<Task<any>[]>;

Released under the MIT License.