T

BeforeContext

The context a before callback receives.

type BeforeContext<Args extends unknown[], Res, Self> = { … }

Members

argsArgs

The arguments of this call; a before callback can return a new array to replace them.

original(...args: Args) => Res

The unpatched method; call it with ctx.this and ctx.args to run the original behavior.

thisSelf

The this the method was called with.