interface IInstrumentCallDetails {
    ctx: (() => any);
    err?: Error;
    evt?: Event;
    inst: any;
    name: string;
    rslt?: any;
    set: ((idx: number, value: any) => void);
}

Properties

ctx: (() => any)

This returns an object that the hook function can use to store hook specific context, it it not shared with any other hook instances and is unique for the current call. A hook implementation can use this to pass / share context between different hook callbacks eg. request/response requst/hookErrors etc.

err?: Error

The error (exception) which occurred while executing the original method

evt?: Event

The Event object from (window.event) at the start of the original call

inst: any
name: string
rslt?: any

The result of the original method, only populated after the original method has returned

set: ((idx: number, value: any) => void)

Allows the hook functions to replace the original arguments

Type declaration

    • (idx, value): void
    • Parameters

      • idx: number

        The argument index (0 based)

      • value: any

        The new value for the argument

      Returns void