UNPKG

447 BTypeScriptView Raw
1import { json } from 'mrm-core';
2import { KeyValuePair } from '../Base/KeyValuePair';
3/**
4 * Exposes the API to work with JSON files.
5 *
6 * ```ts
7 * const json = new JsonFile(__dirname, 'tsconfig.json')
8 * json.set('compilerOptions.lib', ['es2017'])
9 *
10 * json.commit()
11 * ```
12 */
13export declare class JsonFile extends KeyValuePair {
14 filePointer: ReturnType<typeof json>;
15 constructor(basePath: string, filename: string);
16}