cbor2
    Preparing search index...

    Interface ICommenter

    Apply this to a TagDecoder function to get commenting support.

    interface ICommenter {
        comment?(tag: ITag, opts: RequiredCommentOptions, depth: number): string;
        noChildren?: boolean;
    }
    Index
    noChildren?: boolean

    Do not output text for child nodes. The comment function will handle that. If true, ensure that the text returned by the comment function ends in a newline.

    false
    
    • When commenting on this tag, if this function returns a string, it will be appended after the tag number and a colon.

      Parameters

      • tag: ITag

        The tag to comment on.

      • opts: RequiredCommentOptions

        Options.

      • depth: number

        How deep are we in indentation clicks so far?

      Returns string