API > @blocksuite/store > Y > GC
Class: GC ​
Extends ​
Constructors ​
constructor ​
new GC(
id,length):GC
Parameters ​
| Parameter | Type |
|---|---|
id | ID |
length | number |
Returns ​
Inherited from ​
Defined In ​
node_modules/.pnpm/yjs@13.6.10/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:6
Properties ​
id ​
id:
ID
Defined In ​
node_modules/.pnpm/yjs@13.6.10/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:7
Inherited from ​
length ​
length:
number
Defined In ​
node_modules/.pnpm/yjs@13.6.10/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:8
Inherited from ​
Accessors ​
deleted ​
getdeleted():boolean
Defined In ​
node_modules/.pnpm/yjs@13.6.10/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:12
Inherited from ​
Methods ​
delete ​
delete():
void
Returns ​
void
Defined In ​
node_modules/.pnpm/yjs@13.6.10/node_modules/yjs/dist/src/structs/GC.d.ts:6
getMissing ​
getMissing(
transaction,store):null|number
Parameters ​
| Parameter | Type |
|---|---|
transaction | Transaction |
store | StructStore |
Returns ​
null | number
Defined In ​
node_modules/.pnpm/yjs@13.6.10/node_modules/yjs/dist/src/structs/GC.d.ts:22
integrate ​
integrate(
transaction,offset):void
Parameters ​
| Parameter | Type |
|---|---|
transaction | Transaction |
offset | number |
Returns ​
void
Inherited from ​
Defined In ​
node_modules/.pnpm/yjs@13.6.10/node_modules/yjs/dist/src/structs/AbstractStruct.d.ts:31
mergeWith ​
mergeWith(
right):boolean
Parameters ​
| Parameter | Type |
|---|---|
right | GC |
Returns ​
boolean
Overrides ​
Defined In ​
node_modules/.pnpm/yjs@13.6.10/node_modules/yjs/dist/src/structs/GC.d.ts:11
write ​
write(
encoder,offset):void
Parameters ​
| Parameter | Type |
|---|---|
encoder | UpdateEncoderV1 | UpdateEncoderV2 |
offset | number |
Returns ​
void
Overrides ​
Defined In ​
node_modules/.pnpm/yjs@13.6.10/node_modules/yjs/dist/src/structs/GC.d.ts:16