/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular_devkit/schematics/src/workflow/interface.ts
41 строка
1 KB
Ash Ramirez
refactor(@angular/cli): update aio links -> adev links
06 июн 2024, 12:12
06 июн 2024, 12:12
434a374
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { logging } from '@angular-devkit/core'; import { Observable } from 'rxjs'; export interface RequiredWorkflowExecutionContext { collection: string; schematic: string; options: object; } export interface WorkflowExecutionContext extends RequiredWorkflowExecutionContext { debug: boolean; logger: logging.Logger; parentContext?: Readonly<WorkflowExecutionContext>; allowPrivate?: boolean; } export interface LifeCycleEvent { kind: | 'start' | 'end' // Start and end of the full workflow execution. | 'workflow-start' | 'workflow-end' // Start and end of a workflow execution. Can be more. | 'post-tasks-start' | 'post-tasks-end'; // Start and end of the post tasks execution. } export interface Workflow { readonly context: Readonly<WorkflowExecutionContext>; execute( options: Partial<WorkflowExecutionContext> & RequiredWorkflowExecutionContext, ): Observable<void>; }