Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ComplexAttributeConverter<Type, TypeHint>

Converts property values to and from attribute values.

Type parameters

  • Type

  • TypeHint

Hierarchy

  • ComplexAttributeConverter

Index

Methods

Optional fromAttribute

  • fromAttribute(value: string | null, type?: TypeHint): Type
  • Function called to convert an attribute value to a property value.

    Parameters

    • value: string | null
    • Optional type: TypeHint

    Returns Type

Optional toAttribute

  • toAttribute(value: Type, type?: TypeHint): unknown

Generated using TypeDoc