Represents an anchor.

Implements

Constructors

Properties

Methods

Constructors

  • Creates a new instance of the class.

    Parameters

    • Optionalhref: string

      The URL of the resource.

    Returns Anchor

Properties

href?: string

The URL of the resource.

Methods

  • Converts this Anchor to JSON.

    Returns {
        [k: string]: unknown;
    }

    JSON object

    • [k: string]: unknown