source: trip-planner-front/node_modules/@angular-devkit/schematics/src/tree/null.d.ts@ 6c1585f

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

initial commit

  • Property mode set to 100644
File size: 1.5 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 { BaseException, Path, PathFragment } from '@angular-devkit/core';
10import { Action } from './action';
11import { DirEntry, MergeStrategy, Tree, UpdateRecorder } from './interface';
12export declare class CannotCreateFileException extends BaseException {
13 constructor(path: string);
14}
15export declare class NullTreeDirEntry implements DirEntry {
16 readonly path: Path;
17 get parent(): DirEntry | null;
18 constructor(path: Path);
19 readonly subdirs: PathFragment[];
20 readonly subfiles: PathFragment[];
21 dir(name: PathFragment): DirEntry;
22 file(_name: PathFragment): null;
23 visit(): void;
24}
25export declare class NullTree implements Tree {
26 branch(): Tree;
27 merge(_other: Tree, _strategy?: MergeStrategy): void;
28 readonly root: DirEntry;
29 exists(_path: string): boolean;
30 read(_path: string): null;
31 get(_path: string): null;
32 getDir(path: string): NullTreeDirEntry;
33 visit(): void;
34 beginUpdate(path: string): never;
35 commitUpdate(record: UpdateRecorder): never;
36 copy(path: string, _to: string): never;
37 delete(path: string): never;
38 create(path: string, _content: Buffer | string): never;
39 rename(path: string, _to: string): never;
40 overwrite(path: string, _content: Buffer | string): never;
41 apply(_action: Action, _strategy?: MergeStrategy): void;
42 get actions(): Action[];
43}
Note: See TracBrowser for help on using the repository browser.