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/pages/team/previous.astro:45 declares an interface with an index signature whose key type is a string-literal alias (RoleKey). TypeScript disallows this — index signatures must use string, number, or symbol.
astro check error
src/pages/team/previous.astro:45:4 - error ts(1337): An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead.
45 [index: RoleKey]: TeamOverview;
Suggested fix
Replace the index signature with a mapped object type:
team/previous.astro still compiles and the page still renders correctly.
Notes
There's also an unrelated implicit-any warning on line 157 ((member) => ...) — could be fixed in the same small PR if scope allows, since it's in the same file.
team/previousindex signature uses literal typeLabels:
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/pages/team/previous.astro:45declares an interface with an index signature whose key type is a string-literal alias (RoleKey). TypeScript disallows this — index signatures must usestring,number, orsymbol.astro checkerrorSuggested fix
Replace the index signature with a mapped object type:
Or, if not all keys are guaranteed:
Pick whichever matches actual usage in the file.
Acceptance criteria
team/previous.astrostill compiles and the page still renders correctly.Notes
There's also an unrelated implicit-
anywarning on line 157 ((member) => ...) — could be fixed in the same small PR if scope allows, since it's in the same file.