Options to print code of an element

interface FnElementInfo {
    doNotAutoGobble?: boolean;
    dropLinesEnd?: number;
    dropLinesStart?: number;
    hideDefinedAt?: boolean;
    info: TypeElementInSource[];
    program: Program;
}

Properties

doNotAutoGobble?: boolean

Whether to not automatically gobble leading spaces

dropLinesEnd?: number

Number of lines to drop from the end of the code block

dropLinesStart?: number

Number of lines to drop from the start of the code block

hideDefinedAt?: boolean

Whether to hide the "Defined at ..." line

The type information collected from the source code

program: Program

The TypeScript program used to extract the info