From 5adca49702ea8253a34c87f6ef0af18d19c005a4 Mon Sep 17 00:00:00 2001 From: kpal Date: Thu, 7 Mar 2024 16:46:13 +0000 Subject: [PATCH] adds back define for path and dts --- utils/types-fixup.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/types-fixup.mjs b/utils/types-fixup.mjs index a849a126a5d..50a89fba76b 100644 --- a/utils/types-fixup.mjs +++ b/utils/types-fixup.mjs @@ -51,8 +51,8 @@ const componentProps = [ ['enabled', 'boolean'] ]; -path = './types/framework/components/component.d.ts'; -dts = fs.readFileSync(path, 'utf8'); +let path = './types/framework/components/component.d.ts'; +let dts = fs.readFileSync(path, 'utf8'); dts = dts.replace(regexConstructor, '$&\n' + getDeclarations(componentProps)); fs.writeFileSync(path, dts);