source: trip-planner-front/node_modules/@schematics/angular/utility/json-file.d.ts@ eed0bf8

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

initial commit

  • Property mode set to 100644
File size: 828 bytes
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 */
8import { JsonValue } from '@angular-devkit/core';
9import { Tree } from '@angular-devkit/schematics';
10export declare type InsertionIndex = (properties: string[]) => number;
11export declare type JSONPath = (string | number)[];
12/** @internal */
13export declare class JSONFile {
14 private readonly host;
15 private readonly path;
16 content: string;
17 constructor(host: Tree, path: string);
18 private _jsonAst;
19 private get JsonAst();
20 get(jsonPath: JSONPath): unknown;
21 modify(jsonPath: JSONPath, value: JsonValue | undefined, insertInOrder?: InsertionIndex | false): void;
22 remove(jsonPath: JSONPath): void;
23}
Note: See TracBrowser for help on using the repository browser.