Interface: Provider
@lexical/yjs.Provider
Properties
awareness
• awareness: ProviderAwareness
Defined in
packages/lexical-yjs/src/index.ts:45
Methods
connect
▸ connect(): void
| Promise
<void
>
Returns
void
| Promise
<void
>
Defined in
packages/lexical-yjs/src/index.ts:46
disconnect
▸ disconnect(): void
Returns
void
Defined in
packages/lexical-yjs/src/index.ts:47
off
▸ off(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "sync" |
cb | (isSynced : boolean ) => void |
Returns
void
Defined in
packages/lexical-yjs/src/index.ts:48
▸ off(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "update" |
cb | (arg0 : unknown ) => void |
Returns
void
Defined in
packages/lexical-yjs/src/index.ts:49
▸ off(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "status" |
cb | (arg0 : { status : string }) => void |
Returns
void
Defined in
packages/lexical-yjs/src/index.ts:50
▸ off(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "reload" |
cb | (doc : Doc ) => void |
Returns
void
Defined in
packages/lexical-yjs/src/index.ts:51
on
▸ on(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "sync" |
cb | (isSynced : boolean ) => void |
Returns
void
Defined in
packages/lexical-yjs/src/index.ts:52
▸ on(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "status" |
cb | (arg0 : { status : string }) => void |
Returns
void
Defined in
packages/lexical-yjs/src/index.ts:53
▸ on(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "update" |
cb | (arg0 : unknown ) => void |
Returns
void
Defined in
packages/lexical-yjs/src/index.ts:54
▸ on(type
, cb
): void
Parameters
Name | Type |
---|---|
type | "reload" |
cb | (doc : Doc ) => void |
Returns
void