Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Interceptor<T>

Type parameters

  • T = any

Hierarchy

  • Interceptor

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Interceptor(proxy: (...params: any) => any): Interceptor
  • Parameters

    • proxy: (...params: any) => any
        • (...params: any): any
        • Parameters

          • Rest ...params: any

          Returns any

    Returns Interceptor

Properties

Private _before

_before: (...params: any) => T | Promise<T>

Type declaration

    • (...params: any): T | Promise<T>
    • Parameters

      • Rest ...params: any

      Returns T | Promise<T>

Private _proxy

_proxy: Function

Methods

execute

  • execute(data: any): Promise<T>
  • Parameters

    • data: any

    Returns Promise<T>

use

  • use(before: (...params: any) => T | Promise<T>): void
  • Parameters

    • before: (...params: any) => T | Promise<T>
        • (...params: any): T | Promise<T>
        • Parameters

          • Rest ...params: any

          Returns T | Promise<T>

    Returns void

Generated using TypeDoc