1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { virtualFs } from '@angular-devkit/core';
|
9 | import { Observable, Subject } from 'rxjs';
|
10 | import { HostSink } from './host';
|
11 | export interface DryRunErrorEvent {
|
12 | kind: 'error';
|
13 | description: 'alreadyExist' | 'doesNotExist';
|
14 | path: string;
|
15 | }
|
16 | export interface DryRunDeleteEvent {
|
17 | kind: 'delete';
|
18 | path: string;
|
19 | }
|
20 | export interface DryRunCreateEvent {
|
21 | kind: 'create';
|
22 | path: string;
|
23 | content: Buffer;
|
24 | }
|
25 | export interface DryRunUpdateEvent {
|
26 | kind: 'update';
|
27 | path: string;
|
28 | content: Buffer;
|
29 | }
|
30 | export interface DryRunRenameEvent {
|
31 | kind: 'rename';
|
32 | path: string;
|
33 | to: string;
|
34 | }
|
35 | export type DryRunEvent = DryRunErrorEvent | DryRunDeleteEvent | DryRunCreateEvent | DryRunUpdateEvent | DryRunRenameEvent;
|
36 | export declare class DryRunSink extends HostSink {
|
37 | protected _subject: Subject<DryRunEvent>;
|
38 | protected _fileDoesNotExistExceptionSet: Set<string>;
|
39 | protected _fileAlreadyExistExceptionSet: Set<string>;
|
40 | readonly reporter: Observable<DryRunEvent>;
|
41 | |
42 |
|
43 |
|
44 |
|
45 | constructor(host: virtualFs.Host, force?: boolean);
|
46 | protected _fileAlreadyExistException(path: string): void;
|
47 | protected _fileDoesNotExistException(path: string): void;
|
48 | _done(): Observable<void>;
|
49 | }
|