PreInvocationHandler type

Handler för hooks före invokation.

type PreInvocationHandler = (
  context: PreInvocationContext
) => void | Promise<void>