[FIX] web: correct effect_hook typings

closes odoo/odoo#73435

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Bruno Boi
2021-07-12 06:27:49 +00:00
parent 300ef9ac6f
commit 962be132af
+2 -2
View File
@@ -4,8 +4,8 @@ const { onMounted, onWillPatch, onPatched, onWillUnmount } = owl.hooks;
const NO_OP = () => {};
/**
* @callback Effect
* @param {...any} dependencies the dependecies computed by computeDependencies
* @returns {()=>void)?} a cleanup function that reverses the side
* @param {...any} dependencies the dependencies computed by computeDependencies
* @returns {void|(()=>void)} a cleanup function that reverses the side
* effects of the effect callback.
*/