Skip to content

Commit

Permalink
fix(ContentList): component slot typechecking
Browse files Browse the repository at this point in the history
The slot property is `list` and not `data`, so the current type is inaccurate and fails typechecking when used as:

```vue
<ContentList v-slot="{ list }">...</ContentList>
```
  • Loading branch information
cexbrayat committed Sep 1, 2023
1 parent 0bfc275 commit 6f519ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/ContentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const ContentList = defineComponent({
export default ContentList as typeof ContentList & {
new (): {
$slots: {
default: (context: { data: ParsedContent[], refresh: () => Promise<void> }) => VNode[] | undefined
default: (context: { list: ParsedContent[], refresh: () => Promise<void> }) => VNode[] | undefined
}
}
}
Expand Down

0 comments on commit 6f519ab

Please sign in to comment.