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 authored Aug 18, 2022
1 parent 7fde2ed commit 6b97658
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

2 comments on commit 6b97658

@vercel
Copy link

@vercel vercel bot commented on 6b97658 Aug 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website-new

lexical-git-main-fbopensource.vercel.app
lexicaljs.com
lexicaljs.org
lexical-fbopensource.vercel.app
lexical.dev
www.lexical.dev

@vercel
Copy link

@vercel vercel bot commented on 6b97658 Aug 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground-git-main-fbopensource.vercel.app
playground.lexical.dev
lexical-playground-fbopensource.vercel.app
lexical-playground.vercel.app

Please sign in to comment.