ProposalHook
type ProposalHook = (proposal, topic) => Decision<ChangeDraft>;The type of the function that shouldUpdate accepts. The app calls it once for a whole change, and passes it all the deltas together, as a ChangeDraft, together with the topic.
The function returns a Decision, in the same way as a DeltaHook.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
proposal |
ChangeDraft |
topic |
string |
Returns
Section titled “Returns”Decision<ChangeDraft>
