projen
Version:
CDK for software projects
27 lines (26 loc) • 756 B
TypeScript
import type { IConstruct } from "constructs";
import type { IResolver } from "./file";
import type { ObjectFileOptions } from "./object-file";
import { ObjectFile } from "./object-file";
/**
* Options for `JsonFile`.
*/
export interface YamlFileOptions extends ObjectFileOptions {
/**
* Maximum line width (set to 0 to disable folding).
*
* @default - 0
*/
readonly lineWidth?: number;
}
/**
* Represents a YAML file.
*/
export declare class YamlFile extends ObjectFile {
/**
* Maximum line width (set to 0 to disable folding).
*/
lineWidth: number;
constructor(scope: IConstruct, filePath: string, options: YamlFileOptions);
protected synthesizeContent(resolver: IResolver): string | undefined;
}