source: trip-planner-front/node_modules/@angular-devkit/schematics/src/sink/host.d.ts@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/// <reference types="node" />
9import { Path, virtualFs } from '@angular-devkit/core';
10import { Observable } from 'rxjs';
11import { CreateFileAction } from '../tree/action';
12import { UpdateBuffer } from '../utility/update-buffer';
13import { SimpleSinkBase } from './sink';
14export 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, UpdateBuffer>;
20 protected _filesToUpdate: Map<Path, UpdateBuffer>;
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}
Note: See TracBrowser for help on using the repository browser.