Fork me on GitHub
#nbb
<
2022-05-23
>
Péter Szalai17:05:14

hey, how can I access variables from an npm package that are declared in global like this: https://github.com/JXA-userland/JXA/blob/master/packages/%40jxa/global-type/src/index.d.ts#L7 what I tried so far:

(ns list-all-running-app 
  (:require ["@jxa/global-type"]))

(js/Application "System Events")
(Application "System Events")

borkdude18:05:52

@szalaipeti.vagyok I think that global-type package only defines some typescript data for IDEs to use, it's not really defining any global variables in the environment afaik

gratitude-thank-you 1
borkdude18:05:38

Hopefully in a couple of months we'll have an nREPL implementation for #obb

borkdude18:05:41

Subscribe to this issue for more updates on this: https://github.com/babashka/obb/issues/22

Péter Szalai18:05:36

thank you 🙌