[x] Move shared code into schema-refined/core.cljc
[ ] Rewrite -def-map-type macro for ClojureScript (mostly protocols and interop)
[x] Move Clojure & ClojureScript code for guarded structs into separate namespaces due to substantial differences
[x] Adapt ClojureScript tests to host platform
More comments
cljs's -def-map-type macro is not entirely done yet
Not sure about JS interop yet (should it be js/Map or js/Object etc)
There's a bug somewhere that causes stack overflow in tests, haven't tracked it down yet
Schema coercion doesn't work as expected in ClojureScript, bc CLJS Schema extends js/Function type with its protocol which leads to different coercion results
Run tests with lein do clean, with-profiles dev,1.9 doo node test once (only Node for now, couldn't get it working on Nashorn)
Tracking PR for #11
What've been done so far
schema-refined/core.cljc
-def-map-type
macro for ClojureScript (mostly protocols and interop)guarded structs
into separate namespaces due to substantial differencesMore comments
-def-map-type
macro is not entirely done yetjs/Map
orjs/Object
etc)js/Function
type with its protocol which leads to different coercion resultslein do clean, with-profiles dev,1.9 doo node test once
(only Node for now, couldn't get it working on Nashorn)