mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
test: fix type errors
This commit is contained in:
parent
f69b2f15b5
commit
f25a23dd26
10 changed files with 29 additions and 22 deletions
|
@ -1,6 +1,6 @@
|
|||
<script lang="ts">
|
||||
import { DataTable } from "carbon-components-svelte";
|
||||
|
||||
import type { ComponentProps } from "svelte";
|
||||
const headers = [
|
||||
{ key: "name", value: "Name" },
|
||||
{ key: "port", value: "Port" },
|
||||
|
@ -16,7 +16,7 @@
|
|||
{ id: "f", name: "Load Balancer 5", port: 80, rule: "DNS delegation" },
|
||||
];
|
||||
|
||||
let selectedRowIds = [];
|
||||
let selectedRowIds: ComponentProps<DataTable>["selectedRowIds"] = [];
|
||||
|
||||
$: console.log("selectedRowIds", selectedRowIds);
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue