diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index b36312b2..57aa2421 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -932,7 +932,7 @@ export type DataTableKey = export type DataTableValue = any; export interface DataTableEmptyHeader { - key: DataTableKey; + key: DataTableKey | string; empty: boolean; display?: (item: Value, row: Row) => DataTableValue; sort?: false | ((a: DataTableValue, b: DataTableValue) => number); diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 5554181b..9cfd5134 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -2726,9 +2726,9 @@ "ts": "type DataTableValue = any" }, { - "type": "{\n key: DataTableKey;\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 | 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", - "ts": "interface DataTableEmptyHeader {\n key: DataTableKey;\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 {\n key: DataTableKey | 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;\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}", diff --git a/src/DataTable/DataTable.svelte b/src/DataTable/DataTable.svelte index 92d7aadb..188f3b5f 100644 --- a/src/DataTable/DataTable.svelte +++ b/src/DataTable/DataTable.svelte @@ -5,7 +5,7 @@ * @typedef {import('./DataTableTypes.d.ts').PropertyPath} DataTableKey * @typedef {any} DataTableValue * @typedef {{ - * key: DataTableKey; + * key: DataTableKey | string; * empty: boolean; * display?: (item: Value, row: Row) => DataTableValue; * sort?: false | ((a: DataTableValue, b: DataTableValue) => number); diff --git a/types/DataTable/DataTable.svelte.d.ts b/types/DataTable/DataTable.svelte.d.ts index dfca2a12..61b99554 100644 --- a/types/DataTable/DataTable.svelte.d.ts +++ b/types/DataTable/DataTable.svelte.d.ts @@ -7,7 +7,7 @@ export type DataTableKey = export type DataTableValue = any; export interface DataTableEmptyHeader { - key: DataTableKey; + key: DataTableKey | string; empty: boolean; display?: (item: Value, row: Row) => DataTableValue; sort?: false | ((a: DataTableValue, b: DataTableValue) => number);