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

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

initial commit

  • Property mode set to 100644
File size: 1.2 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 { UpdateBuffer } from '../utility/update-buffer';
10import { FileEntry, UpdateRecorder } from './interface';
11export declare class UpdateRecorderBase implements UpdateRecorder {
12 protected _path: string;
13 protected _original: Buffer;
14 protected _content: UpdateBuffer;
15 constructor(entry: FileEntry);
16 static createFromFileEntry(entry: FileEntry): UpdateRecorderBase;
17 get path(): string;
18 insertLeft(index: number, content: Buffer | string): UpdateRecorder;
19 insertRight(index: number, content: Buffer | string): UpdateRecorder;
20 remove(index: number, length: number): UpdateRecorder;
21 apply(content: Buffer): Buffer;
22}
23export declare class UpdateRecorderBom extends UpdateRecorderBase {
24 private _delta;
25 constructor(entry: FileEntry, _delta?: number);
26 insertLeft(index: number, content: Buffer | string): UpdateRecorder;
27 insertRight(index: number, content: Buffer | string): UpdateRecorder;
28 remove(index: number, length: number): UpdateRecorder;
29}
Note: See TracBrowser for help on using the repository browser.