Function createAccessor

  • Creates the accessor callback that invokes getter of setter depending on the number of arguments.

    Type Parameters

    • Output

      The value returned by the getter.

    • Input

      The value passed to the setter.

    Parameters

    Returns Accessor<Output, Input>