Last change
on this file 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/writing/file_writer" />
|
---|
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 | */
|
---|
9 | import { AbsoluteFsPath } from '../../../src/ngtsc/file_system';
|
---|
10 | import { EntryPoint, EntryPointJsonProperty } from '../packages/entry_point';
|
---|
11 | import { EntryPointBundle } from '../packages/entry_point_bundle';
|
---|
12 | import { FileToWrite } from '../rendering/utils';
|
---|
13 | /**
|
---|
14 | * Responsible for writing out the transformed files to disk.
|
---|
15 | */
|
---|
16 | export interface FileWriter {
|
---|
17 | writeBundle(bundle: EntryPointBundle, transformedFiles: FileToWrite[], formatProperties: EntryPointJsonProperty[]): void;
|
---|
18 | /**
|
---|
19 | * Revert the changes to an entry-point processed for the specified format-properties by the same
|
---|
20 | * `FileWriter` implementation.
|
---|
21 | *
|
---|
22 | * @param entryPoint The entry-point to revert.
|
---|
23 | * @param transformedFilePaths The original paths of the transformed files. (The transformed files
|
---|
24 | * may be written at the same or a different location, depending on the `FileWriter`
|
---|
25 | * implementation.)
|
---|
26 | * @param formatProperties The format-properties pointing to the entry-point.
|
---|
27 | */
|
---|
28 | revertBundle(entryPoint: EntryPoint, transformedFilePaths: AbsoluteFsPath[], formatProperties: EntryPointJsonProperty[]): void;
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.