1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { JsonValue } from '@angular-devkit/core';
|
9 | import { Tree } from '@angular-devkit/schematics';
|
10 | export declare type InsertionIndex = (properties: string[]) => number;
|
11 | export declare type JSONPath = (string | number)[];
|
12 |
|
13 | export 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 | }
|