mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
Loosen empty table row header key
This commit is contained in:
parent
ed3a3956fb
commit
df1d40257d
4 changed files with 5 additions and 5 deletions
|
@ -932,7 +932,7 @@ export type DataTableKey<Row = DataTableRow> =
|
|||
export type DataTableValue = any;
|
||||
|
||||
export interface DataTableEmptyHeader<Row = DataTableRow> {
|
||||
key: DataTableKey<Row>;
|
||||
key: DataTableKey<Row> | string;
|
||||
empty: boolean;
|
||||
display?: (item: Value, row: Row) => DataTableValue;
|
||||
sort?: false | ((a: DataTableValue, b: DataTableValue) => number);
|
||||
|
|
|
@ -2726,9 +2726,9 @@
|
|||
"ts": "type DataTableValue = any"
|
||||
},
|
||||
{
|
||||
"type": "{\n key: DataTableKey<Row>;\n empty: boolean;\n display?: (item: Value, row: Row) => DataTableValue;\n sort?: false | ((a: DataTableValue, b: DataTableValue) => number);\n columnMenu?: boolean;\n width?: string;\n minWidth?: string;\n}",
|
||||
"type": "{\n key: DataTableKey<Row> | string;\n empty: boolean;\n display?: (item: Value, row: Row) => DataTableValue;\n sort?: false | ((a: DataTableValue, b: DataTableValue) => number);\n columnMenu?: boolean;\n width?: string;\n minWidth?: string;\n}",
|
||||
"name": "DataTableEmptyHeader<Row=DataTableRow>",
|
||||
"ts": "interface DataTableEmptyHeader<Row=DataTableRow> {\n key: DataTableKey<Row>;\n empty: boolean;\n display?: (item: Value, row: Row) => DataTableValue;\n sort?: false | ((a: DataTableValue, b: DataTableValue) => number);\n columnMenu?: boolean;\n width?: string;\n minWidth?: string;\n}"
|
||||
"ts": "interface DataTableEmptyHeader<Row=DataTableRow> {\n key: DataTableKey<Row> | string;\n empty: boolean;\n display?: (item: Value, row: Row) => DataTableValue;\n sort?: false | ((a: DataTableValue, b: DataTableValue) => number);\n columnMenu?: boolean;\n width?: string;\n minWidth?: string;\n}"
|
||||
},
|
||||
{
|
||||
"type": "{\n key: DataTableKey<Row>;\n value: DataTableValue;\n display?: (item: Value, row: Row) => DataTableValue;\n sort?: false | ((a: DataTableValue, b: DataTableValue) => number);\n columnMenu?: boolean;\n width?: string;\n minWidth?: string;\n}",
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* @typedef {import('./DataTableTypes.d.ts').PropertyPath<Row>} DataTableKey<Row=DataTableRow>
|
||||
* @typedef {any} DataTableValue
|
||||
* @typedef {{
|
||||
* key: DataTableKey<Row>;
|
||||
* key: DataTableKey<Row> | string;
|
||||
* empty: boolean;
|
||||
* display?: (item: Value, row: Row) => DataTableValue;
|
||||
* sort?: false | ((a: DataTableValue, b: DataTableValue) => number);
|
||||
|
|
2
types/DataTable/DataTable.svelte.d.ts
vendored
2
types/DataTable/DataTable.svelte.d.ts
vendored
|
@ -7,7 +7,7 @@ export type DataTableKey<Row = DataTableRow> =
|
|||
export type DataTableValue = any;
|
||||
|
||||
export interface DataTableEmptyHeader<Row = DataTableRow> {
|
||||
key: DataTableKey<Row>;
|
||||
key: DataTableKey<Row> | string;
|
||||
empty: boolean;
|
||||
display?: (item: Value, row: Row) => DataTableValue;
|
||||
sort?: false | ((a: DataTableValue, b: DataTableValue) => number);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue