diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 21e1f33647..d2694b8548 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 | string; + 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 380b87456a..f5e36743d6 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -2722,9 +2722,9 @@ "ts": "type DataTableValue = any" }, { - "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}", + "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 | 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}" + "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 5a22a2f219..4703e92c10 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 | string; + * 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 7a13ad54e3..3013dd113b 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 | string; + key: DataTableKey | (string & {}); empty: boolean; display?: (item: Value, row: Row) => DataTableValue; sort?: false | ((a: DataTableValue, b: DataTableValue) => number);