Git Product home page Git Product logo

Comments (9)

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

Hopefully this can help you: https://github.com/FormidableLabs/react-fast-compare/blob/master/index.d.ts (exportedEqual)

from react-fast-compare.

willsmanley avatar willsmanley commented on May 30, 2024

Nice, thanks Ryan! Even while using exportedEqual as the import name, PhpStorm doesn't seem to autosuggest importing the package. Are there any typescript libraries for react-fast-compare?

from react-fast-compare.

chrisbolin avatar chrisbolin commented on May 30, 2024

Maybe i'm misunderstanding your question, but https://github.com/FormidableLabs/react-fast-compare/blob/master/index.d.ts is the types files for this library

from react-fast-compare.

chrisbolin avatar chrisbolin commented on May 30, 2024

you should see it in your node_modules. if your editor doesn't pick that up, then we should troubleshoot and see what the criteria is for types in that editor

from react-fast-compare.

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

@chrisbolin -- I went looking a little bit more and I think we may have an unreleased fix:

from react-fast-compare.

chrisbolin avatar chrisbolin commented on May 30, 2024

Bingo! @willsmanley as luck would have it we are releasing 3.0.0 later today, so you can upgrade to get those types.

from react-fast-compare.

chrisbolin avatar chrisbolin commented on May 30, 2024

also, exportedEqual is a dumb name 😂 I'm going to change it to isEqual

from react-fast-compare.

chrisbolin avatar chrisbolin commented on May 30, 2024

@willsmanley could you test out our beta (https://www.npmjs.com/package/react-fast-compare/v/3.0.0-beta.1) and see if your editor picks up the name? (it would be exportedEqual in that beta)

from react-fast-compare.

chrisbolin avatar chrisbolin commented on May 30, 2024

Alright, we've validated the autocomplete in WebStorm (thx @carlos-kelly) and VSCode.

WebStorm:

image

VS Code:

image

Closing, as this is fixed in [email protected]

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.