mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-06-26 23:21:41 +00:00
17 lines
694 B
TypeScript
17 lines
694 B
TypeScript
import { YAMLException } from "js-yaml";
|
|
export declare class YAMLFileException extends YAMLException {
|
|
file: string;
|
|
constructor(error: YAMLException, file: string);
|
|
}
|
|
declare function read(file: string): KeyValue;
|
|
declare function readIfExists(file: string, fallback?: KeyValue): KeyValue;
|
|
declare function writeIfChanged(file: string, content: KeyValue): void;
|
|
declare function updateIfChanged(file: string, key: string, value: KeyValue): void;
|
|
declare const _default: {
|
|
read: typeof read;
|
|
readIfExists: typeof readIfExists;
|
|
updateIfChanged: typeof updateIfChanged;
|
|
writeIfChanged: typeof writeIfChanged;
|
|
};
|
|
export default _default;
|
|
//# sourceMappingURL=yaml.d.ts.map
|