import * as yaml from 'js-yaml' ; export function loadYaml < T > ( data , opts ? ) { return ( yaml . load ( data , opts ) as any ) as T ; } export function loadAllYaml ( data , opts ? ) { return yaml . loadAll ( data , undefined , opts ) ; } export function dumpYaml ( object , opts ? ) { return yaml . dump ( object , opts ) ; }