       (update-in [:db-after] with-datom datom)
       (update-in [:tx-data] conj datom)))
 
-(defn ^Boolean reverse-ref? [attr]
+(defn #?@(:clj  [^Boolean reverse-ref?]
+          :cljs [^boolean reverse-ref?]) [attr]
   (cond
     (keyword? attr)
     (= "_" (nth (name attr) 0))

      (assoc-in [:tempids e] eid)
      (update-in [:db-after] advance-max-eid eid))))

(defn- ^Boolean tx-id? [e]
  (or (= e :db/current-tx)
      (= e ":db/current-tx"))) ;; for datascript.js interop


   (do
     (def Exception js/Error)
     (def IllegalArgumentException js/Error)
     (def UnsupportedOperationException js/Error)))

(def ^:const tx0 0x20000000)

