UNPKG

@ply-ct/ply

Version:

REST API Automated Testing

19 lines (18 loc) 709 B
export interface Yaml { start: number; text: string; } export declare function dump(obj: object, indent: number): string; /** * @param assignLines Here 'force' converts strings, numbers, booleans and nulls to objects * so that they can contain __start && __end properties (__ prop contains raw value). */ export declare function load(file: string, contents: string, assignLines?: boolean | 'force'): any; /** * Merge a raw object into yaml content, respecting existing comments. */ export declare function merge(file: string, yaml: string, delta: any, indent?: number): string; /** * Meta comments (trimmed with trailing semis removed) */ export declare function metas(yaml: string): string[];