Merge pull request #271 from albertms10/master

fix(data-table): change DataTable headers prop type
This commit is contained in:
Eric Liu 2020-09-19 15:14:56 -07:00 committed by GitHub
commit 26bfc0a385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<script> <script>
/** /**
* Specify the data table headers * Specify the data table headers
* @type {{key: string; value: string;}} [headers=[]] * @type {{key: string; value: string;}[]} [headers=[]]
*/ */
export let headers = []; export let headers = [];

2
types/index.d.ts vendored
View file

@ -721,7 +721,7 @@ export class DataTable extends CarbonSvelteComponent {
/** /**
* Specify the data table headers * Specify the data table headers
*/ */
headers?: { key: string; value: string }; headers?: { key: string; value: string }[];
/** /**
* Specify the rows the data table should render * Specify the rows the data table should render