* For each level waterfall. * @template {StatsFactoryHooks[keyof StatsFactoryHooks]} HM * @template {HM extends HookMap<infer H> ? H : never} H * @template [D=EXPECTED_ANY] * @param {HM} hookMap hook map * @param {Caches<H>} cache cache * @param {string} type type * @param {D} data dat
(hookMap, cache, type, data, fn)
| 199 | * @private |
| 200 | */ |
| 201 | _forEachLevelWaterfall(hookMap, cache, type, data, fn) { |
| 202 | for (const hook of this._getAllLevelHooks(hookMap, cache, type)) { |
| 203 | data = fn(/** @type {H} */ (hook), data); |
| 204 | } |
| 205 | return data; |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * For each level filter. |
no test coverage detected