You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using angular-google-charts 2.2.3 with typescript 5.1.6 and angular 16.2.2.
The file chart-base.component.ts defines type Row: export type Row = (string | number | Date | null)[];
Please expand the options to include boolean and { v: any, f: string } (for formatters, as described in README.md). Currently, I get errors like the one shown below when passing data with booleans and/or formatters to <dashboard> or <google-chart>, although if I suppress the errors using $any() the data is accepted and works correctly.
Type 'MyData[]' is not assignable to type 'Row[]'.
Type 'MyData' is not assignable to type 'Row'.
Type 'string | boolean | Date' is not assignable to type 'string | number | Date | null'.
Type 'false' is not assignable to type 'string | number | Date | null'.ngtsc(2322)
The text was updated successfully, but these errors were encountered:
Bug Report
Description
I am using angular-google-charts 2.2.3 with typescript 5.1.6 and angular 16.2.2.
The file
chart-base.component.ts
defines typeRow
:export type Row = (string | number | Date | null)[];
Please expand the options to include
boolean
and{ v: any, f: string }
(for formatters, as described inREADME.md
). Currently, I get errors like the one shown below when passing data with booleans and/or formatters to<dashboard>
or<google-chart>
, although if I suppress the errors using$any()
the data is accepted and works correctly.The text was updated successfully, but these errors were encountered: