Skip to content

ViewDecision

type ViewDecision<T> = { decision: "allow"; override?: T } | { decision: "deny"; reason?: string };
Value Meaning
allow Permit the requested camera or spectating change. override, when present, replaces the requested value.
deny Refuse the change, optionally with a reason.