Git Product home page Git Product logo

Comments (8)

kitten avatar kitten commented on May 31, 2024 2

@chrisbolin We may be able to retain support as it was before but satisfy typings like these by using: <A = any, B = any>(a: A, b: B) => boolean

from react-fast-compare.

cdierkens avatar cdierkens commented on May 31, 2024 1

kale-stew moved this from In progress to Done in May 2020 on May 28, 2020

@ryan-roemer this might be closable as well. We may not have had the automation turned on to set this ticket to closed when moving the card on the project board.

from react-fast-compare.

chrisbolin avatar chrisbolin commented on May 31, 2024

thanks @marqu3z! I'll look into this as soon as I can. I might cut a beta release—would you be willing to test that?

from react-fast-compare.

marqu3z avatar marqu3z commented on May 31, 2024

thanks @marqu3z! I'll look into this as soon as I can. I might cut a beta release—would you be willing to test that?

Sure, no problem

from react-fast-compare.

chrisbolin avatar chrisbolin commented on May 31, 2024

see #62 as well. We may be able to use kitten's <A = any, B = any>(a: A, b: B) => boolean, but we may have to use (a: any, b: any): boolean. Some testing will be needed, and I think we should release a beta and have folks try it.

from react-fast-compare.

chrisbolin avatar chrisbolin commented on May 31, 2024

Important note: in order to fix the types, we need to give up the naive hope that we could ever types that statically do a comparison. e.g.

<Thing = any>(<a: Thing, b: Thing>) => boolean

We've dealt with this earlier, so I want to make sure it doesn't come back to bite us.

from react-fast-compare.

kale-stew avatar kale-stew commented on May 31, 2024

@chrisbolin the more I'm reading about namespace declaration, the more it seems our types are definitely broken as-is. With the namespace declaration being dead code, I'm not confident it's working the way we think it is?

More info about ambient namespaces / namespacing in general

from react-fast-compare.

ryan-roemer avatar ryan-roemer commented on May 31, 2024

Sounds good!

from react-fast-compare.

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.