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

    Properties

    Methods

    Properties

    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
    

    Methods

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

      Parameters

      Returns string