DepositReceiveHooks
DepositReceiveHooks<
Context> = { readonly [Name in DepositName]?: (context: Context & { delivery: ReceivedDeposit<Name> }) => undefined | “decline” }
A receiving declaration’s hooks, one per kind it takes, by the kind’s
name: each applies a deposit into the record, inside its own
transaction, and answers "decline" to send it back. A hook cannot
wait: one that returns a promise counts as a throw.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
Context |
DepositContext |