Type alias TrapReturn

TrapReturn: {
    handler?: string;
    override?: any;
    propagate?: boolean;
}

The TrapReturn type handles

Type declaration

  • Optional handler?: string

    The name of the handler function that will process the intercepted data.

  • Optional override?: any

    Data with which to override the originally intercepted request. If an array is passed, entries will be applied as separate arguments.

  • Optional propagate?: boolean

    If true, the response of the trapFunction will be forwarded to the socket, if not no response is returned

Generated using TypeDoc