aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/interface.d.ts
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
commit6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch)
treef46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/interface.d.ts
parent2400b84e95913665da6279114168148444b8f9ab (diff)
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/interface.d.ts')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/interface.d.ts61
1 files changed, 61 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/interface.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/interface.d.ts
new file mode 100644
index 00000000..168e0591
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/src/tree/interface.d.ts
@@ -0,0 +1,61 @@
+/**
+ * @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, PathFragment } from '@angular-devkit/core';
+import { Action } from './action';
+export declare enum MergeStrategy {
+ AllowOverwriteConflict = 2,
+ AllowCreationConflict = 4,
+ AllowDeleteConflict = 8,
+ Default = 0,
+ Error = 1,
+ ContentOnly = 2,
+ Overwrite = 14
+}
+export declare const FileVisitorCancelToken: symbol;
+export declare type FileVisitor = FilePredicate<void>;
+export interface FileEntry {
+ readonly path: Path;
+ readonly content: Buffer;
+}
+export interface DirEntry {
+ readonly parent: DirEntry | null;
+ readonly path: Path;
+ readonly subdirs: PathFragment[];
+ readonly subfiles: PathFragment[];
+ dir(name: PathFragment): DirEntry;
+ file(name: PathFragment): FileEntry | null;
+ visit(visitor: FileVisitor): void;
+}
+export interface FilePredicate<T> {
+ (path: Path, entry?: Readonly<FileEntry> | null): T;
+}
+export declare const TreeSymbol: symbol;
+export interface Tree {
+ branch(): Tree;
+ merge(other: Tree, strategy?: MergeStrategy): void;
+ readonly root: DirEntry;
+ read(path: string): Buffer | null;
+ exists(path: string): boolean;
+ get(path: string): FileEntry | null;
+ getDir(path: string): DirEntry;
+ visit(visitor: FileVisitor): void;
+ overwrite(path: string, content: Buffer | string): void;
+ beginUpdate(path: string): UpdateRecorder;
+ commitUpdate(record: UpdateRecorder): void;
+ create(path: string, content: Buffer | string): void;
+ delete(path: string): void;
+ rename(from: string, to: string): void;
+ apply(action: Action, strategy?: MergeStrategy): void;
+ readonly actions: Action[];
+}
+export interface UpdateRecorder {
+ insertLeft(index: number, content: Buffer | string): UpdateRecorder;
+ insertRight(index: number, content: Buffer | string): UpdateRecorder;
+ remove(index: number, length: number): UpdateRecorder;
+}