cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
588 stars 7 forks source link

Generate stubs for cljs-ajax #1540

Open danielcompton opened 8 years ago

danielcompton commented 8 years ago

cljs-ajax uses macros to define GET, POST, e.t.c. These don't seem to be picked up by the Cursive stub generator, possibly because it is a cljs library?

dmarjenburgh commented 8 years ago

It's because these functions are defined by a macro at the bottom in the ajax.core namespace https://github.com/JulianBirch/cljs-ajax/blob/master/src/ajax/core.cljc#L585

What worked for me is to go into that namespace and resolve an easy-api call as def. Works well enough for resolving the symbol.