1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { JsonValue } from '@angular-devkit/core';
|
9 | export declare type InsertionIndex = (properties: string[]) => number;
|
10 | export declare type JSONPath = (string | number)[];
|
11 |
|
12 | export declare class JSONFile {
|
13 | private readonly path;
|
14 | content: string;
|
15 | constructor(path: string);
|
16 | private _jsonAst;
|
17 | private get JsonAst();
|
18 | get(jsonPath: JSONPath): unknown;
|
19 | modify(jsonPath: JSONPath, value: JsonValue | undefined, insertInOrder?: InsertionIndex | false): boolean;
|
20 | save(): void;
|
21 | }
|
22 | export declare function readAndParseJson(path: string): any;
|
23 | export declare function parseJson(content: string): any;
|