morse-react-tables
Advanced tools
Comparing version 4.1.2-alpha.2 to 4.1.2-alpha.3
import { SortDirection, Table } from "morse-react"; | ||
import React, { ComponentProps, ComponentType } from "react"; | ||
import { PluginDefinition, TablePluginOptions } from "../plugins/PluginDefinition"; | ||
import { ColumnDefinition } from "./columns/ColumnDefinition"; | ||
import { ColumnDefinition, Paths } from "./columns/ColumnDefinition"; | ||
export interface DatasetTableProps<T, SortType = keyof T> extends ComponentProps<typeof Table> { | ||
@@ -34,3 +34,3 @@ /** | ||
*/ | ||
columns: Array<ColumnDefinition<T, SortType> | keyof T>; | ||
columns: Array<ColumnDefinition<T, SortType> | Paths<T>>; | ||
/** | ||
@@ -37,0 +37,0 @@ * An optional function to handle rending of a row of items. |
{ | ||
"name": "morse-react-tables", | ||
"version": "4.1.2-alpha.2", | ||
"version": "4.1.2-alpha.3", | ||
"description": "Patterns for building tables", | ||
@@ -21,3 +21,3 @@ "repository": { | ||
"morse-css": "4.1.2", | ||
"morse-react": "4.1.2-alpha.2", | ||
"morse-react": "4.1.2-alpha.3", | ||
"react": "^18.0.0", | ||
@@ -45,3 +45,3 @@ "react-dom": "^18.0.0", | ||
], | ||
"gitHead": "99e27ff44f10913e9874b60567df8938d9c1e90d" | ||
"gitHead": "7270dec292c892145342d6aa11fa0f52af0e324f" | ||
} |
Sorry, the diff of this file is not supported yet
115656