Closed oobayly closed 2 months ago
Please add boolean
as a valid data type, too.
@kussmaul I've checked the google.visualization
typings, they simply use any
as the type. Probably they actually only allow primitives and Date
(and no custom objects), but I'm not even sure about that.
Would you prefer sticking with the current typing (adding boolean
to support all primitives), or simply switch to any
to be more flexible? I'm leaning toward the latter. The resulting type would be
export type Row = (any | google.visualization.DataObjectCell)[];
@FERNman using any
seems reasonable, especially since it matches google.visualization
.
@kussmaul great, then I'll go ahead and merge the PR! 👍
Feature request
The interface definition for
Row
should also include the type{v: any, f: any}
- see Cell ObjectsDescribe the solution you'd like
Update the Row interface
I've added this into #296.
Describe alternatives you've considered
n/a
Additional context
n/a