Closed keyvan-m-sadeghi closed 2 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.
Package:
async-later
Question: https://stackoverflow.com/questions/68761267/capture-generic-type-of-passed-function-for-overloads-in-typescriptCurrent implementation of
curried
doesn't recognize generics.Relates to microsoft/TypeScript#1213