diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/sink/sink.d.ts')
-rw-r--r-- | sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/sink/sink.d.ts | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/sink/sink.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/sink/sink.d.ts new file mode 100644 index 00000000..9e441f2a --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/sink/sink.d.ts @@ -0,0 +1,35 @@ +/** + * @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 { Observable } from 'rxjs'; +import { Action, CreateFileAction, DeleteFileAction, OverwriteFileAction, RenameFileAction } from '../tree/action'; +import { Tree } from '../tree/interface'; +export interface Sink { + commit(tree: Tree): Observable<void>; +} +export declare abstract class SimpleSinkBase implements Sink { + preCommitAction: (action: Action) => void | Action | PromiseLike<Action> | Observable<Action>; + postCommitAction: (action: Action) => void | Observable<void>; + preCommit: () => void | Observable<void>; + postCommit: () => void | Observable<void>; + protected abstract _validateFileExists(p: string): Observable<boolean>; + protected abstract _overwriteFile(path: string, content: Buffer): Observable<void>; + protected abstract _createFile(path: string, content: Buffer): Observable<void>; + protected abstract _renameFile(path: string, to: string): Observable<void>; + protected abstract _deleteFile(path: string): Observable<void>; + protected abstract _done(): Observable<void>; + protected _fileAlreadyExistException(path: string): void; + protected _fileDoesNotExistException(path: string): void; + protected _validateOverwriteAction(action: OverwriteFileAction): Observable<void>; + protected _validateCreateAction(action: CreateFileAction): Observable<void>; + protected _validateRenameAction(action: RenameFileAction): Observable<void>; + protected _validateDeleteAction(action: DeleteFileAction): Observable<void>; + validateSingleAction(action: Action): Observable<void>; + commitSingleAction(action: Action): Observable<void>; + commit(tree: Tree): Observable<void>; +} |