Skip to content

Commit 5f58bee

Browse files
authored
fix(typings): fix setValue value param should accept same types as getValue (#765)
1 parent f3800ae commit 5f58bee

File tree

1 file changed

+1
-1
lines changed
  • packages/react-google-charts/src

1 file changed

+1
-1
lines changed

packages/react-google-charts/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export type GoogleDataTable = {
419419
setRowProperty: (rowIndex: number, name: string, value: any) => void;
420420
setRowProperties: (rowIndex: number, properties: {} | null) => void;
421421
setTableProperties: (properties: {} | null) => void;
422-
setValue: (rowIndex: number, columnIndex: number, value: string) => void;
422+
setValue: (rowIndex: number, columnIndex: number, value: boolean | string | number | Date | number[] | null) => void;
423423
sort: (sortColumns: GoogleDataTableSortColumns) => void;
424424
toJSON: () => string; // GoogleDataTableJS
425425
};

0 commit comments

Comments
 (0)