Genericize Datum type #2467
jamesarosen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
DatumValue
is defined asstring | number | Date
. Packages like Line define aDatum
type asWhen a custom layer function receives the
ComputedDatum
entries, it can't know the exact type ofcomputedDatum.data.x
. It would be nice ifDatum
were generic, likeThat way, I could build a
Line<Date, number>
that ensures all my internal types line up.Beta Was this translation helpful? Give feedback.
All reactions