Alright, figured out what I was trying to do. Will...
# javascript
r
Alright, figured out what I was trying to do. Will leave here for future. Was trying to create a facade/extern object to interface with
express.js
. The fun part is that the express module is exported as a function that also has properties/other functions. https://github.com/expressjs/express/blob/master/lib/express.js#L28 So it was difficult to mimic the api as it is used in javascript as so (just as an example):
Copy code
let router = express.Router()
let app = express()
😱 1
👍 1
g
Maybe make sense to contribute here https://github.com/Kotlin/js-externals
r
Didn't even know that existed! After I flesh out the API I'll submit a PR
👍 1
g
It’s early version of declarations repo, but time to contribute 🙂