1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { Path, virtualFs } from '@angular-devkit/core';
|
10 | import { Observable } from 'rxjs';
|
11 | import { CreateFileAction } from '../tree/action';
|
12 | import { UpdateBufferBase } from '../utility/update-buffer';
|
13 | import { SimpleSinkBase } from './sink';
|
14 | export declare class HostSink extends SimpleSinkBase {
|
15 | protected _host: virtualFs.Host;
|
16 | protected _force: boolean;
|
17 | protected _filesToDelete: Set<Path>;
|
18 | protected _filesToRename: Set<[Path, Path]>;
|
19 | protected _filesToCreate: Map<Path, UpdateBufferBase>;
|
20 | protected _filesToUpdate: Map<Path, UpdateBufferBase>;
|
21 | constructor(_host: virtualFs.Host, _force?: boolean);
|
22 | protected _validateCreateAction(action: CreateFileAction): Observable<void>;
|
23 | protected _validateFileExists(p: Path): Observable<boolean>;
|
24 | protected _overwriteFile(path: Path, content: Buffer): Observable<void>;
|
25 | protected _createFile(path: Path, content: Buffer): Observable<void>;
|
26 | protected _renameFile(from: Path, to: Path): Observable<void>;
|
27 | protected _deleteFile(path: Path): Observable<void>;
|
28 | _done(): Observable<void>;
|
29 | }
|