Skip to content

astro-check (error): CollaboratorList collaborators typed as {} #572

@lsr-explore

Description

@lsr-explore

CollaboratorList collaborators typed as {}

Labels: types
Estimated 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:check

Summary

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions