Fork me on GitHub
#clojurescript
<
2018-10-06
>
richiardiandrea01:10:51

I am trying to port a lib and in Clojure the author extends clojure.lang.Seqable. What would be the equivalent in Cljs?

richiardiandrea01:10:07

ISeqable would not work because it is a protocol and I don't think I can extend a protocol in cljs? not sure though

Azzurite18:10:23

what does the :externs ["react/externs/react.js"] in lein's project.clj clojurescript compiler options when using reagent do? I can't find it being documented somewhere

Azzurite18:10:00

I understand what :externs does, I just don't understand where the "react/externs/react.js" path comes from

benzap18:10:28

:externs point to a file that allows the closure google compiler to figure out what it can and cannot prune when doing an advanced compilation

benzap18:10:46

it's usually pointing relative to the resource-path(?)

benzap18:10:00

It could be wrt to the asset-path, I can't remember

benzap18:10:03

maybe someone else can confirm

Azzurite18:10:13

yeah it's the classpath & current dir

polymeris18:10:59

Do any existing clojurescript documentation generators support reading from the compiled code? I am playing around with creating a cljs aws sdk (á la amazonica, but using node underneath) which generates a ton of functions dynamically.