🐛 Add handler to correctly encode cljs dates to json

This commit is contained in:
Andrés Moya 2025-08-25 13:26:07 +02:00 committed by Andrés Moya
parent 991b26b73f
commit c1b2aa7628

View File

@ -426,3 +426,8 @@
:encode/json format-duration
::oapi/type "string"
::oapi/format "duration"}})))
#?(:cljs
(extend-protocol cljs.core/IEncodeJS
js/Date
(-clj->js [x] x)))