Git Product home page Git Product logo

Comments (3)

clemos avatar clemos commented on July 26, 2024

Would you have an example because it's not 100% clear to me what your issue actually is ?
Currently, as externs, Express extends Connect, which is not ideal nor 100% true from a js pov, but makes some sense.
In reality (in js), Express depends on Connect but doesn't strictly "extend" it...

As for your second issue, the extern assumes Express is what you call "ExpressServer" (or express.Application).
So you should use "new Express()" to create an express app.

Now if you need to access to, say, express.cookieParser, I've indeed made the choice to let these middlewares in js.npm.connect, like js.npm.connect.CookieParser...
In reality, they are the same middlewares, but express "copies" references to them so they are available in the global express object as well as in connect.*.
In Haxe, and IMHO this kind of hack doesn't really make sense...

But maybe I didn't understand fully what you're asking.
To which 'function' are you referring ? 'listen' ?

from haxe-js-kit.

clemos avatar clemos commented on July 26, 2024

May I close this issue ?

from haxe-js-kit.

0b1kn00b avatar 0b1kn00b commented on July 26, 2024

You're welcome to, I think it may have been the macro cache.

from haxe-js-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.