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
|
@ -12,6 +12,7 @@
|
|||
} from "carbon-components-svelte";
|
||||
import type { DataTableHeader } from "carbon-components-svelte/DataTable/DataTable.svelte";
|
||||
import Launch from "carbon-icons-svelte/lib/Launch.svelte";
|
||||
import type { ComponentProps } from "svelte";
|
||||
|
||||
const headers: DataTableHeader[] = [
|
||||
{ key: "name", value: "Name" },
|
||||
|
@ -69,7 +70,7 @@
|
|||
return 0;
|
||||
}
|
||||
|
||||
let filteredRowIds = [];
|
||||
let filteredRowIds: ComponentProps<ToolbarSearch>["filteredRowIds"] = [];
|
||||
</script>
|
||||
|
||||
<DataTable
|
||||
|
@ -119,7 +120,7 @@
|
|||
<Toolbar>
|
||||
<ToolbarContent>
|
||||
<ToolbarSearch
|
||||
bind:filteredRowIds
|
||||
bind:filteredRowIds="{filteredRowIds}"
|
||||
shouldFilterRows="{(row, value) => {
|
||||
return row.name.includes(value);
|
||||
}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue