Skip to content

Commit d727cdb

Browse files
authored
fix iff hook parameters (#766)
1 parent f447ce7 commit d727cdb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/hooks.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -861,14 +861,12 @@ Execute one or another series of hooks depending on a sync or async predicate.
861861
862862
- **Arguments**
863863
- `{Boolean | Promise | Function} predicate`
864-
- `{Array< Function >} hookFuncsTrue`
865-
- `{Array< Function >} hookFuncsFalse`
864+
- `{Array< Function >}] hookFuncs`
866865
867866
| Argument | Type | Default | Description |
868867
| ---------------- | :--------------------------------: | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
869-
| `predicate` | `Boolean`, `Promise` or `Function` | | Determine if `hookFuncsTrue` or `hookFuncsFalse` should be run. If a function, `predicate` is called with the `context` as its param. It returns either a boolean or a Promise that evaluates to a boolean. |
870-
| `hookFuncsTrue` | `Array<` `Function >` | | Sync or async hook functions to run if `true`. They may include other conditional hooks. |
871-
| `hookFuncsFalse` | `Array<` `Function >` | | Sync or async hook functions to run if `false`. They may include other conditional hooks. |
868+
| `predicate` | `Boolean`, `Promise` or `Function` | | Determine if `hookFuncs` should be run. If a function, `predicate` is called with the `context` as its param. It returns either a boolean or a Promise that evaluates to a boolean. |
869+
| `hookFuncs` | `Array< Function >` | | Sync or async hook functions to run if `true`. They may include other conditional hooks. |
872870
873871
- **Example**
874872

0 commit comments

Comments
 (0)