Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
839 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 | */
|
---|
8 | import { JsonValue } from '@angular-devkit/core';
|
---|
9 | export declare type InsertionIndex = (properties: string[]) => number;
|
---|
10 | export declare type JSONPath = (string | number)[];
|
---|
11 | /** @internal */
|
---|
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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.