OnInvalid
type OnInvalid = (info) => void;Called when a payload fails its schema, instead of the default development warning. Report it, count it, sample it — but it does not change the outcome: an inbound payload is dropped and an outbound one throws either way.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
info | InvalidPayload |
Returns
Section titled “Returns”void