Interface: Provider
@lexical/yjs.Provider
Properties
awareness
• awareness: ProviderAwareness
Defined in
lexical-yjs/src/index.ts:37
Methods
connect
▸ connect(): void
| Promise
<void
>
Returns
void
| Promise
<void
>
Defined in
lexical-yjs/src/index.ts:38
disconnect
▸ disconnect(): void
Returns
void
Defined in
lexical-yjs/src/index.ts:39
off
▸ off(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "sync" |
cb | (isSynced : boolean ) => void |
Returns
void
Defined in
lexical-yjs/src/index.ts:40
▸ off(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "update" |
cb | (arg0 : unknown ) => void |
Returns
void
Defined in
lexical-yjs/src/index.ts:41
▸ off(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "status" |
cb | (arg0 : { status : string }) => void |
Returns
void
Defined in
lexical-yjs/src/index.ts:42
▸ off(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "reload" |
cb | (doc : Doc ) => void |
Returns
void
Defined in
lexical-yjs/src/index.ts:43
on
▸ on(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "sync" |
cb | (isSynced : boolean ) => void |
Returns
void
Defined in
lexical-yjs/src/index.ts:44
▸ on(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "status" |
cb | (arg0 : { status : string }) => void |
Returns
void
Defined in
lexical-yjs/src/index.ts:45
▸ on(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "update" |
cb | (arg0 : unknown ) => void |
Returns
void
Defined in
lexical-yjs/src/index.ts:46
▸ on(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "reload" |
cb | (doc : Doc ) => void |
Returns
void
Defined in
lexical-yjs/src/index.ts:47