test: fix type errors

This commit is contained in:
Eric Liu 2024-11-09 09:59:04 -08:00
commit f25a23dd26
10 changed files with 29 additions and 22 deletions

View file

@ -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>