Skip to main content

Interface: Provider

lexical-yjs/src.Provider

Properties

awareness

awareness: ProviderAwareness

Defined in

lexical-yjs/src/index.ts:41

Methods

connect

connect(): void | Promise<void>

Returns

void | Promise<void>

Defined in

lexical-yjs/src/index.ts:42


disconnect

disconnect(): void

Returns

void

Defined in

lexical-yjs/src/index.ts:43


off

off(type, cb): void

Parameters

NameType
type"sync"
cb(isSynced: boolean) => void

Returns

void

Defined in

lexical-yjs/src/index.ts:44

off(type, cb): void

Parameters

NameType
type"update"
cb(arg0: unknown) => void

Returns

void

Defined in

lexical-yjs/src/index.ts:45

off(type, cb): void

Parameters

NameType
type"status"
cb(arg0: { status: string }) => void

Returns

void

Defined in

lexical-yjs/src/index.ts:46

off(type, cb): void

Parameters

NameType
type"reload"
cb(doc: Doc) => void

Returns

void

Defined in

lexical-yjs/src/index.ts:47


on

on(type, cb): void

Parameters

NameType
type"sync"
cb(isSynced: boolean) => void

Returns

void

Defined in

lexical-yjs/src/index.ts:48

on(type, cb): void

Parameters

NameType
type"status"
cb(arg0: { status: string }) => void

Returns

void

Defined in

lexical-yjs/src/index.ts:49

on(type, cb): void

Parameters

NameType
type"update"
cb(arg0: unknown) => void

Returns

void

Defined in

lexical-yjs/src/index.ts:50

on(type, cb): void

Parameters

NameType
type"reload"
cb(doc: Doc) => void

Returns

void

Defined in

lexical-yjs/src/index.ts:51