Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITraceMethodOptions <T, K, TReturns >

Options object for tracing method calls

Type parameters

  • T

  • K: keyof T

  • TReturns

Hierarchy

  • ITraceMethodOptions

Index

Properties

Optional isAsync

isAsync: undefined | true | false

The method execution will be awaited if set

method

method: function & T[K]

The method reference that needs to be traced

object

object: T

The context object. Can be an instance or a constructor for static methods

Optional onCalled

onCalled: undefined | function

Callback that will be called right before executing the method

Optional onError

onError: undefined | function

Callback that will be called when a method throws an error

Optional onFinished

onFinished: undefined | function

Callback that will be called right after the method returns

Generated using TypeDoc