Giter Site home page Giter Site logo

multicall-nitro's Introduction

Hi ! โšก๏ธ

My name is Enzo and I'm providing technical leadership to young teams.

I'm a super energetic person who:

๐Ÿ’ป codes a lot
๐Ÿณ eats a lot
๐Ÿ‹๐Ÿปโ€โ™‚๏ธ trains a lot

I have been doing web development for the last 11 years bootstrapping +50 products in a wide variety of markets ๐Ÿš€

Currently building 10xTeam.dev ๐ŸŽฏ

https://enzoferey.com

multicall-nitro's People

Contributors

enzoferey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

multicall-nitro's Issues

Return type should be inferred from calls labels and functions return type

As of right now the returned type needs to be typed manually like:

createWatcher<Value>
getBatchedValuesOnce<Value>
useBatchedValues<Value>
useBatchedValuesOnce<Value>

This is error prone because the passed calls can change (the label or returned type does not match anymore), so the library should be able to infer the Value type from the calls labels and functions return type.

Inferring the labels should be straightforward with some TypeScript magic. Inferring the labels' types also requires some TypeScript magic but should be doable.

An alternative solution could be to wrap the calls generators in some glue that defines its types, so everything about a call would be defined where the call is defined and then the function using it would pick up those definitions.

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.