getNavigationType return string

This commit is contained in:
Muki Kiboigo
2025-12-08 05:16:46 -08:00
parent 7c34cb5852
commit ab165d3f1f

View File

@@ -42,8 +42,8 @@ pub fn getFrom(self: *NavigationCurrentEntryChangeEvent) *NavigationHistoryEntry
return self._from; return self._from;
} }
pub fn getNavigationType(self: *const NavigationCurrentEntryChangeEvent) ?NavigationType { pub fn getNavigationType(self: *const NavigationCurrentEntryChangeEvent) ?[]const u8 {
return self._navigation_type; return if (self._navigation_type) |nav_type| @tagName(nav_type) else null;
} }
pub const JsApi = struct { pub const JsApi = struct {