funcool 2024-08-06

in ClojureScript + promesa, externs inference for symbols bound with p/let doesn't seem to work

I can try to create a minimal repro, but is this already known?

I don't know if I will be able to solve this from my side, all metadata associated with the symbol is already passed down in a macro

cljs makes some magic on its let macro implementation, I will probably need to spend a bit more time and research what cljs does inside for "emulate" the same behavior, for now I suggest just type hint it redundantly

I don't think that I will be able to fix it in a reasonable amount of time

Hmm, i think i understand that you're saying. And yes, we currently does not forward metadata between symbols, so I think we can improve this.

Just open an issue please.

👍🏻 1

OK, maybe I'll take a look at some point