PreInvocationHandler type

用於召喚前掛鉤的處理程式。

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