UNPKG

449 BTypeScriptView Raw
1import { yaml } from 'mrm-core';
2import { KeyValuePair } from '../Base/KeyValuePair';
3/**
4 * Exposes the API to work with Yaml files.
5 *
6 * ```ts
7 * const yaml = new YamlFile(__dirname, '.travis.yml')
8 * yaml.set('language', 'node_js')
9 * yaml.set('language', [4, 6])
10 *
11 * yaml.commit()
12 * ```
13 */
14export declare class YamlFile extends KeyValuePair {
15 filePointer: ReturnType<typeof yaml>;
16 constructor(basePath: string, filename: string);
17}