T

NativeHookPayload

Trims what a hook sends to JavaScript per call, to cut crossing cost on hot methods.

type NativeHookPayload<Receiver extends boolean = boolean> = { … }

Members

arguments?number[]

The zero-based indexes of the arguments to send; every argument when omitted.

phase?"before" | "after"

Sends only the before or only the after call; both when omitted.

receiver?Receiver

Whether handlers receive self. Defaults to true.