Skip to content

Commit

Permalink
[lexical-react] Refactor: Replace React$Context with React.Context (
Browse files Browse the repository at this point in the history
  • Loading branch information
SamChou19815 authored Feb 5, 2025
1 parent dde1d3f commit ddcf40a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ type CollaborationContextType = {
yjsDocMap: Map<string, Doc>,
};

declare export var CollaborationContext: React$Context<CollaborationContextType>;
declare export var CollaborationContext: React.Context<CollaborationContextType>;
declare export function useCollaborationContext(): CollaborationContextType;
2 changes: 1 addition & 1 deletion packages/lexical-react/flow/LexicalComposerContext.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type LexicalComposerContextWithEditor = [
LexicalComposerContextType,
];

declare export var LexicalComposerContext: React$Context<?LexicalComposerContextWithEditor>;
declare export var LexicalComposerContext: React.Context<?LexicalComposerContextWithEditor>;

declare export function createLexicalComposerContext(
parent: ?LexicalComposerContextWithEditor,
Expand Down

0 comments on commit ddcf40a

Please sign in to comment.