Skip to content

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.

Parameter Type
proposal ChangeDraft
topic string

Decision<ChangeDraft>