normalizeHooks
function normalizeHooks<Before, After>(input): Hooks<Before, After>[];Defined in: src/hooks/contract.ts:51
Normalize the hooks option into a flat array (empty when unset).
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Before extends HookEvent |
After extends HookEvent |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
HooksInput<Before, After> |
Returns
Section titled “Returns”Hooks<Before, After>[]