From 962be132af6685152ae28206caf2ddaf95747993 Mon Sep 17 00:00:00 2001 From: Bruno Boi Date: Thu, 8 Jul 2021 13:33:27 +0000 Subject: [PATCH] [FIX] web: correct effect_hook typings closes odoo/odoo#73435 Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/core/effect_hook.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/core/effect_hook.js b/addons/web/static/src/core/effect_hook.js index 91ae4e8df69..7e2b298e97d 100644 --- a/addons/web/static/src/core/effect_hook.js +++ b/addons/web/static/src/core/effect_hook.js @@ -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. */