Skip to content

Commit

Permalink
Fix small type issue (#2847)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegreatercurve committed Nov 25, 2022
1 parent 03fca5f commit 6ed49f3
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/lexical-react/flow/LexicalCollaborationPlugin.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,9 @@
* @flow strict
*/

import type {ProviderAwareness} from '@lexical/yjs';
import type {Doc, RelativePosition} from 'yjs';

export type UserState = {
anchorPos: null | RelativePosition,
focusPos: null | RelativePosition,
name: string,
color: string,
focusing: boolean,
};

export type ProviderAwareness = {
getLocalState: () => UserState | null,
setLocalState: (UserState) => void,
getStates: () => Map<number, UserState>,
on: (type: 'update', cb: () => void) => void,
off: (type: 'update', cb: () => void) => void,
};

export interface Provider {
connect(): void | Promise<void>;
disconnect(): void;
Expand Down

0 comments on commit 6ed49f3

Please sign in to comment.