CacheControl / CacheControl/json-rules-engine
Type of `Engine.on()` is wrong
Ouverte
- Langage dominant
- JavaScript
- Étoiles
- 3.1k
- Forks
- 507
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
If you register an event handler on a specific event (i.e. `Engine.on("my-event", ...)`), the first argument of the method will be the `params` of the `Event` definition (type: `Record`), not the `Event` object itself.
I'm not sure if this only the case for specific events or more generally the `EventHandler`:
https://github.com/CacheControl/json-rules-engine/blob/90272d61ed7bea8b7d4000305511e932490d2e2e/types/index.d.ts#L106-L110
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.