Two related artifacts left over from the avatar/banner GQL refactor in 4.6.20: - fetchOnlyFollowerCount was an early standalone helper from the iteration where Helix supplied core profile fields and a separate public-GQL roundtrip pulled just the follower count. The 4.6.19 rewrite folded all of that into a single public-GQL query, so the helper has no callers. Removed. - streamFromPublic was typed via `Awaited<ReturnType<typeof fetchPublicStreamerProfile>> extends ...` conditional inference because the inline stream shape was anonymous. That worked but read like a riddle. Hoisted the inline shapes to two named interfaces (PublicStreamInfo + PublicStreamerProfileResult) so the function signature is explicit and the local var is just `PublicStreamInfo | null`. Same type, an order of magnitude more obvious to anyone reading. Both changes are zero-runtime-behavior; tests confirm. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| build | ||
| docs | ||
| scripts | ||
| src | ||
| .gitignore | ||
| eslint.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| README_AI_RELEASE.md | ||
| tsconfig.json | ||