Primeiro commit do projeto Angular
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @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' | 'workflow-start' | 'workflow-end' | 'post-tasks-start' | 'post-tasks-end';
|
||||
}
|
||||
export interface Workflow {
|
||||
readonly context: Readonly<WorkflowExecutionContext>;
|
||||
execute(options: Partial<WorkflowExecutionContext> & RequiredWorkflowExecutionContext): Observable<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user