functionland / fula-archived

Client-server stack for Web3! Turn your Raspberry Pi to a BAS server in minutes and enjoy the freedom of decentralized Web with a superior user experience!
https://fx.land
MIT License
4 stars 0 forks source link

Unknown type when generic functions are passed to curried #3

Closed keyvan-m-sadeghi closed 2 years ago

keyvan-m-sadeghi commented 3 years ago

Package: async-later Question: https://stackoverflow.com/questions/68761267/capture-generic-type-of-passed-function-for-overloads-in-typescript

Current implementation of curried doesn't recognize generics.

Relates to microsoft/TypeScript#1213

keyvan-m-sadeghi commented 3 years ago

Tried @jcalz's suggestion in 97c685e, works much better than mine, but still needs the generic specified.

These are to be used in pipeline (or pipeline operator whenever it's out), so the PR would be a hard sell to @reconbot.

Proposed "Variadic Generic Types" as a potential solution in microsoft/TypeScript#45438.