mirror of
https://github.com/vector-im/element-call.git
synced 2026-11-19 09:32:29 +08: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>