• Creates a new specifying attribute with the key and value.

    Parameters

    • key: string

      A name of the attribute such as alt.

    • namespace: string = ""

      A namespace of the tag such as http://www.w3.org/2000/svg.

    Returns ((value) => Attribute)

    The new fact.

Generated using TypeDoc