mirror of
https://github.com/element-hq/element-call.git
synced 2026-11-22 15:27:01 +00:00
Storybook's react-docgen plugin parses .ts files with Babel's jsx plugin enabled, so the angle-bracket assertion `<EncryptionSystem>useMemo(...)` reads as an opening JSX tag and the Storybook build fails with "Unexpected token". Passing the type as useMemo's generic is equivalent and parses either way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>