dCBOR Pattern TypeScript - v1.0.0-alpha.20
    Preparing search index...

    Interface FormatPathsOpts

    Options for formatting paths.

    interface FormatPathsOpts {
        indent: boolean;
        elementFormat: PathElementFormat;
        maxLength: number | undefined;
        lastElementOnly: boolean;
    }
    Index

    Properties

    indent: boolean

    Whether to indent each path element. If true, each element will be indented by 4 spaces per level.

    true
    
    elementFormat: PathElementFormat

    Format for each path element.

    PathElementFormat.DiagnosticSummary
    
    maxLength: number | undefined

    Maximum length for element representation before truncation. If undefined, no truncation is applied.

    lastElementOnly: boolean

    If true, only the last element of each path will be formatted. This is useful for displaying only the final destination of a path. If false, all elements will be formatted.

    false