diff --git a/types/ui-grid/index.d.ts b/types/ui-grid/index.d.ts index 9334e91669..8056b4cc07 100644 --- a/types/ui-grid/index.d.ts +++ b/types/ui-grid/index.d.ts @@ -927,10 +927,9 @@ declare namespace uiGrid { clearRowInvisible(rowEntity: TEntity): void; /** * Returns all visible rows - * @param {IGridInstance} grid the grid you want to get visible rows from * @returns {Array} an array of gridRow */ - getVisibleRows(grid: IGridInstanceOf): Array>; + getVisibleRows(): Array>; /** * Trigger a grid resize, normally this would be picked * up by a watch on window size, but in some circumstances it is necessary diff --git a/types/ui-grid/ui-grid-tests.ts b/types/ui-grid/ui-grid-tests.ts index 1e424985fb..027619b3d4 100644 --- a/types/ui-grid/ui-grid-tests.ts +++ b/types/ui-grid/ui-grid-tests.ts @@ -117,7 +117,7 @@ var uiGridConstants: uiGrid.IUiGridConstants; gridApi.core.clearAllFilters(true); gridApi.core.addToGridMenu(gridInstance, [menuItem]); -gridApi.core.getVisibleRows(gridInstance); +gridApi.core.getVisibleRows(); gridApi.core.handleWindowResize(); gridApi.core.queueGridRefresh(); gridApi.core.queueRefresh();