We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lexical version:
"@lexical/react": "~0.3.11",
This seems to be a regression: TS types are missing.
import { ProviderAwareness, ProviderFactory, UserState } from '@lexical/react/LexicalCollaborationPlugin';
TS2305: Module '"@lexical/react/LexicalCollaborationPlugin"' has no exported member 'UserState'.
Types were previously exported, but currently the types defined in LexicalCollaborationPlugin.js.flow are missing from LexicalCollaborationPlugin.d.ts
LexicalCollaborationPlugin.js.flow
LexicalCollaborationPlugin.d.ts
The text was updated successfully, but these errors were encountered:
ProviderAwareness and UserState are now exported from lexical-yjs. It's an error for it to still be in Flow.
ProviderAwareness
UserState
lexical-yjs
We removed ProviderFactory, but can create your own version of the type using something like the below:
ProviderFactory
import {WebsocketProvider as ProviderFactory} from 'y-websocket'; type ProviderFactory = ( id: string, yjsDocMap: Map<string, Doc>, ) -> WebsocketProvider
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Lexical version:
Steps To Reproduce
This seems to be a regression: TS types are missing.
The current behavior
TS2305: Module '"@lexical/react/LexicalCollaborationPlugin"' has no exported member 'UserState'.
The expected behavior
Types were previously exported, but currently the types defined in
LexicalCollaborationPlugin.js.flow
are missing fromLexicalCollaborationPlugin.d.ts
The text was updated successfully, but these errors were encountered: