From 48dfc09f22567363b73c8440e54f61c901ca2cf9 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 24 Jan 2024 18:11:28 +0100 Subject: [PATCH] Fix types --- packages/string-templates/src/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/string-templates/src/index.js b/packages/string-templates/src/index.js index 8e28956f75..fbe5910938 100644 --- a/packages/string-templates/src/index.js +++ b/packages/string-templates/src/index.js @@ -396,6 +396,5 @@ module.exports.convertToJS = hbs => { module.exports.FIND_ANY_HBS_REGEX = FIND_ANY_HBS_REGEX const errors = require("./errors") -for (const error in errors) { - module.exports[error] = errors[error] -} +// We cannot use dynamic exports, otherwise the typescript file will not be generating it +module.exports.JsErrorTimeout = errors.JsErrorTimeout