Function onChange3

  • Similar to onChange, but accepts any function and paramType defaults to 'object'. The function is called with an object parameter: {key, value, oldValue, target}.

    Type Parameters

    • TTarget = any

    Parameters

    • fnKey:
          | string
          | (
              obj: { key: string; oldValue: any; target: TTarget; value: any },
          ) => void
    • paramType: "object" | "void" = 'object'

    Returns PropertyDecorator