@glen what is your opinion on how to implement functions that have multiple signatures, like eigs
and say format
?
math.eigs(x)
math.eigs(x, precision)
math.mean(a, b, c, ...)
math.…
Sorry for the delay, I was sick.
I've briefly gone though the current set of functions of mathjs. Some observations:
- Most functions are either a function with a clear API that can be…
ah, yeah, you're right. So, yes, the alternative is to come up with an API specifying individual parameters again, like Dependencies<'add', [T, T]>
.
I'm ok with the syntax of both…
I've pushed a branch approach4.6
I've tried an additional API like `DependencyAlias<'addComplex', 'add', Complex<numbe…
AliasOf
{ params, returns }
Thanks, this makes sense. Agree
The following notation reads very clear to me:
{addComplex: Signature<'add', Complex<number>>,
addNumbers: Signature<'add', number>}
We…
This is a bit of the "opposite" of what we tried in #123: there, we where trying to make typed(...)
return a full-fledged TS interface.…
😂 you're getting poetic.
I like the approaches 4.5 and 2.5 a lot, thanks! Feels like we're getting there. Let's discuss today in a video call.