source: trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/execution/api.d.ts@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/// <amd-module name="@angular/compiler-cli/ngcc/src/execution/api" />
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9import { FileToWrite } from '../rendering/utils';
10import { Task, TaskCompletedCallback, TaskQueue } from './tasks/api';
11/**
12 * The type of the function that analyzes entry-points and creates the list of tasks.
13 *
14 * @return A list of tasks that need to be executed in order to process the necessary format
15 * properties for all entry-points.
16 */
17export declare type AnalyzeEntryPointsFn = () => TaskQueue;
18/** The type of the function that can process/compile a task. */
19export declare type CompileFn<T> = (task: Task) => void | T;
20/** The type of the function that creates the `CompileFn` function used to process tasks. */
21export declare type CreateCompileFn = <T extends void | Promise<void>>(beforeWritingFiles: (transformedFiles: FileToWrite[]) => T, onTaskCompleted: TaskCompletedCallback) => CompileFn<T>;
22/**
23 * A class that orchestrates and executes the required work (i.e. analyzes the entry-points,
24 * processes the resulting tasks, does book-keeping and validates the final outcome).
25 */
26export interface Executor {
27 execute(analyzeEntryPoints: AnalyzeEntryPointsFn, createCompileFn: CreateCompileFn): void | Promise<void>;
28}
Note: See TracBrowser for help on using the repository browser.