Skip to content

Commit

Permalink
feat(components): Add a second generic item for columndefs defaulted …
Browse files Browse the repository at this point in the history
…as unknown
  • Loading branch information
rodelta committed Oct 11, 2023
1 parent 84f6ee8 commit 7118004
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/table-virtualized/table-virtualized.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ import { useVirtualizer, VirtualizerOptions } from "@tanstack/react-virtual";
import React from "react";
import { DndProvider } from "react-dnd";
import { HTML5Backend } from "react-dnd-html5-backend";
import { classNames } from "../../util/class-names";
import { TableUnvirtualized } from "../table-unvirtualized";
import { DraggableRow } from "./draggable-row/draggable-row";
import { VirtualizedHeaderGroup } from "./header-group/header-group";
import { ExpandableButtonCell } from "./expandable-button-cell/expandable-button-cell";
import { TableUnvirtualized } from "../table-unvirtualized";
import { classNames } from "../../util/class-names";
import { VirtualizedHeaderGroup } from "./header-group/header-group";

export interface TableVirtualizedProps<TableData> {
export interface TableVirtualizedProps<TableData, TableValue = unknown> {
data: TableData[];
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
columnDefs: ColumnDef<TableData, any>[];
columnDefs: ColumnDef<TableData, TableValue>[];
showPlaceholder?: boolean;
placeholder?: React.ReactNode;
isDraggableRowsEnabled?: boolean;
Expand Down

0 comments on commit 7118004

Please sign in to comment.