You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/components/CollaboratorList.astro:18 destructures data from collaborator entries inside a .map, but the array type is inferred as {} so TS can't see a data property.
astro check error
src/components/CollaboratorList.astro:18:26 - error ts(2339): Property 'data' does not exist on type '{}'.
18 collaborators.map(({ data }) => (```
## Suggested fix
Type the `collaborators` prop explicitly. Most likely it should be `CollectionEntry<"collaborators">[]` (or whichever collection name applies). Add an `interface Props { collaborators: CollectionEntry<"...">[] }` declaration at the top of the file.
## Acceptance criteria
- [ ] Error clears.
- [ ] Collaborator list renders correctly wherever `CollaboratorList` is used.
- [ ] No `any` introduced.
CollaboratorListcollaboratorstyped as{}Labels:
typesEstimated PR size: 1 file
Note
Ticket description was generated using Claude Code. Review before starting on a fix.
Note
The following issue adds support for
npm run astro:checkSummary
src/components/CollaboratorList.astro:18destructuresdatafrom collaborator entries inside a.map, but the array type is inferred as{}so TS can't see adataproperty.astro checkerror