mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
Update value types
This commit is contained in:
parent
bd6f52cbae
commit
69de338796
4 changed files with 15 additions and 15 deletions
6
types/DataTable/DataTable.svelte.d.ts
vendored
6
types/DataTable/DataTable.svelte.d.ts
vendored
|
@ -9,7 +9,7 @@ export type DataTableValue = any;
|
|||
export interface DataTableEmptyHeader<Row = DataTableRow> {
|
||||
key: DataTableKey<Row> | (string & {});
|
||||
empty: boolean;
|
||||
display?: (item: Value, row: Row) => DataTableValue;
|
||||
display?: (item: DataTableValue, row: Row) => DataTableValue;
|
||||
sort?: false | ((a: DataTableValue, b: DataTableValue) => number);
|
||||
columnMenu?: boolean;
|
||||
width?: string;
|
||||
|
@ -19,7 +19,7 @@ export interface DataTableEmptyHeader<Row = DataTableRow> {
|
|||
export interface DataTableNonEmptyHeader<Row = DataTableRow> {
|
||||
key: DataTableKey<Row>;
|
||||
value: DataTableValue;
|
||||
display?: (item: Value, row: Row) => DataTableValue;
|
||||
display?: (item: DataTableValue, row: Row) => DataTableValue;
|
||||
sort?: false | ((a: DataTableValue, b: DataTableValue) => number);
|
||||
columnMenu?: boolean;
|
||||
width?: string;
|
||||
|
@ -40,7 +40,7 @@ export type DataTableRowId = any;
|
|||
export interface DataTableCell<Row = DataTableRow> {
|
||||
key: DataTableKey<Row> | (string & {});
|
||||
value: DataTableValue;
|
||||
display?: (item: Value, row: DataTableRow) => DataTableValue;
|
||||
display?: (item: DataTableValue, row: DataTableRow) => DataTableValue;
|
||||
}
|
||||
|
||||
type $RestProps = SvelteHTMLElements["div"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue