Skip to content

API > @blocksuite/store > Y > GC

Class: GC ​

Extends ​

Constructors ​

constructor ​

new GC(id, length): GC

Parameters ​

ParameterType
idID
lengthnumber

Returns ​

GC

Inherited from ​

AbstractStruct.constructor

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:6

Properties ​

id ​

id: ID

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:7

Inherited from ​

AbstractStruct.id


length ​

length: number

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:8

Inherited from ​

AbstractStruct.length

Accessors ​

deleted ​

get deleted(): boolean

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:12

Inherited from ​

AbstractStruct.deleted

Methods ​

delete ​

delete(): void

Returns ​

void

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/structs/GC.d.ts:6


getMissing ​

getMissing(transaction, store): null | number

Parameters ​

ParameterType
transactionTransaction
storeStructStore

Returns ​

null | number

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/structs/GC.d.ts:22


integrate ​

integrate(transaction, offset): void

Parameters ​

ParameterType
transactionTransaction
offsetnumber

Returns ​

void

Inherited from ​

AbstractStruct.integrate

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:31


mergeWith ​

mergeWith(right): boolean

Parameters ​

ParameterType
rightGC

Returns ​

boolean

Overrides ​

AbstractStruct.mergeWith

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/structs/GC.d.ts:11


write ​

write(encoder, offset): void

Parameters ​

ParameterType
encoderUpdateEncoderV1 | UpdateEncoderV2
offsetnumber

Returns ​

void

Overrides ​

AbstractStruct.write

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/structs/GC.d.ts:16