Git Product home page Git Product logo

Comments (8)

kevupton avatar kevupton commented on May 25, 2024 2

@nbubna Just made a PR to fix the typescript problems.

from store.

thomschke avatar thomschke commented on May 25, 2024

try previous version v2.5.4, it's running under TS.

from store.

srinivasuluparanduru avatar srinivasuluparanduru commented on May 25, 2024

when i am installing store2, by default its taking latest version.
if possible share the command for installing v2.5.4 store2

from store.

thomschke avatar thomschke commented on May 25, 2024

npm install [email protected] --save-exact or yarn add [email protected]

from store.

srinivasuluparanduru avatar srinivasuluparanduru commented on May 25, 2024

Can i know the explicit and versatile functions available in 2.5.4

Earlier used store2 V2.3.0 for my solution. Getting following errors

Property 'remove' does not exist on type 'typeof store'
Property 'each' does not exist on type 'typeof store'
Property 'get' does not exist on type 'typeof store'
Property 'set' does not exist on type 'typeof store'

used this function with reference to V2.3.0.

from store.

thomschke avatar thomschke commented on May 25, 2024

https://github.com/nbubna/store/blob/2.5.4/index.d.ts

from store.

nbubna avatar nbubna commented on May 25, 2024

Ok, i reverted the misguided 2.5.5 changes. 2.5.6 is the new 2.5.4 now. Sorry about that! I'm still learning this TypeScript support stuff.

P.S. If anyone wants to help out. I love tests, but i don't know how to write a test for the typings file, and i'm fairly limited in my time to spend on this project.

from store.

nbubna avatar nbubna commented on May 25, 2024

ended up testing this myself and found i need to export the functions and consts in the store namespace so that things like store.get('foo', 'alt') would register correctly.

Thanks again for the help!

from store.

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.