From 75ca403f3e5ec3780deec63e586bd3dc43ff99a4 Mon Sep 17 00:00:00 2001 From: Sergei Zharinov Date: Mon, 5 Jan 2026 15:46:40 -0300 Subject: [PATCH] fix: reset DIM before emitting field type in typegen --- crates/plotnik-lib/src/typegen/typescript.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/plotnik-lib/src/typegen/typescript.rs b/crates/plotnik-lib/src/typegen/typescript.rs index 9a80248e..9566e785 100644 --- a/crates/plotnik-lib/src/typegen/typescript.rs +++ b/crates/plotnik-lib/src/typegen/typescript.rs @@ -567,8 +567,8 @@ impl<'a> Emitter<'a> { let ts_type = self.type_to_ts(field_type); let opt_marker = if optional { "?" } else { "" }; self.output.push_str(&format!( - "{} {}{}{}{}: {};\n", - c.reset, field_name, c.dim, opt_marker, c.dim, ts_type + "{} {}{}{}{}: {}{}{};\n", + c.reset, field_name, c.dim, opt_marker, c.dim, c.reset, ts_type, c.dim )); }