Giter VIP home page Giter VIP logo

Comments (4)

arqex avatar arqex commented on May 27, 2024

Hey Juan,

I think I didn't understand well what's your problem on creating the d.ts file, maybe because I don't use typescript myself.

When you do a get in a freezer store you get a freezer node. What's a freezer node? there are 3 types:

  • Objects, with methods set, replace, remove, toJSON, pivot, transact, now an events operations.
  • Arrays, with replace, toJSON, pivot, transact, now` and all event and array operations.
  • Leaves: They have no methods in it.

I suppose this polymorphic behavior, is a pain for creating a typescript declaration. Isn't it?

from freezer.

rutgervd avatar rutgervd commented on May 27, 2024

@Juancoll Did you guys ever get to finish the bindings? Would love to use them myself.

from freezer.

arqex avatar arqex commented on May 27, 2024

I think it never got done. I don't use typescript so I don't plan to add it, but if someone wants to create a PR I'd be glad to merge it.

from freezer.

a7madgamal avatar a7madgamal commented on May 27, 2024

@arqex still not using ts? :D
we are migrating our codebase to typescript and freezer makes the heart of the state management logic so we would love to get ts support. I have good experience in TS but never wrote types for a lib before.
I will probably give it a try starting with migrating the code itself to ts then see how can I define the types.
I will fork it but would you be interested to help me if needed or accept a PR with the changes when done?

from freezer.

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.