UNPKG

@grnsft/if

Version:

Impact Framework

13 lines (12 loc) 384 B
/** * Reads and parses `yaml` file to object. */ export declare const openYamlFileAsObject: <T>(filePath: string) => Promise<T>; /** * Saves given `yaml` dump as a file. */ export declare const saveYamlFileAs: (object: any, pathToFile: string) => Promise<void>; /** * Checks if given `fileName` is yaml. */ export declare const checkIfFileIsYaml: (fileName: string) => boolean;