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