mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
Merge pull request #271 from albertms10/master
fix(data-table): change DataTable headers prop type
This commit is contained in:
commit
26bfc0a385
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
/**
|
||||
* Specify the data table headers
|
||||
* @type {{key: string; value: string;}} [headers=[]]
|
||||
* @type {{key: string; value: string;}[]} [headers=[]]
|
||||
*/
|
||||
export let headers = [];
|
||||
|
||||
|
|
2
types/index.d.ts
vendored
2
types/index.d.ts
vendored
|
@ -721,7 +721,7 @@ export class DataTable extends CarbonSvelteComponent {
|
|||
/**
|
||||
* Specify the data table headers
|
||||
*/
|
||||
headers?: { key: string; value: string };
|
||||
headers?: { key: string; value: string }[];
|
||||
|
||||
/**
|
||||
* Specify the rows the data table should render
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue