Code Monkey home page Code Monkey logo

Comments (5)

insidewhy avatar insidewhy commented on June 15, 2024 1

I think the types for this library also need to improved though... maybe ws is onto something.

from rxjs-websockets.

insidewhy avatar insidewhy commented on June 15, 2024

The types being used are the native types, ws is the one doing it's own thing. ws should be updated rather than this library.

from rxjs-websockets.

EvanCarroll avatar EvanCarroll commented on June 15, 2024

We either have to be stronger typed accepting only things that provide ws. Or, massively weaker typed to the common denominator between ws and w3c. At that point we're pretty much just dropping TypeScript support explicitly with any.

We can do that too if you want me to strip the types. As it is though, I don't think the factory thing works in a strongly typed system unless any contemporary node.js modules are producing the w3c types, certainly not ws which is the big one (afaik).

Not sure how other client/server code bases do it. Maybe request.js has some wisdom on it?

from rxjs-websockets.

insidewhy avatar insidewhy commented on June 15, 2024

I'm fixing this now, sorry it took so long.

from rxjs-websockets.

insidewhy avatar insidewhy commented on June 15, 2024

@EvanCarroll Linked the fixing commit to this issue, annoying I had to use any, not sure why typescript doesn't apply function bivariance when considering type compatibility of an object's properties to an interface. Released v6.0.4 with the fix.

from rxjs-websockets.

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.