mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
jsdoc fixes
This commit is contained in:
@@ -8,6 +8,9 @@ import * as ID from '../utils/ID.js'
|
||||
* @typedef {Map<number, number>} StateSet
|
||||
*/
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export class StateStore {
|
||||
constructor (y) {
|
||||
this.y = y
|
||||
|
||||
@@ -25,11 +25,12 @@ import { Decoder } from '../lib/decoding.js' // eslint-disable-line
|
||||
|
||||
/**
|
||||
* A Yjs instance handles the state of shared data.
|
||||
*
|
||||
* @param {string} room Users in the same room share the same content
|
||||
* @param {Object} conf configuration
|
||||
*/
|
||||
export class Y extends NamedEventHandler {
|
||||
/**
|
||||
* @param {string} room Users in the same room share the same content
|
||||
* @param {Object} conf configuration
|
||||
*/
|
||||
constructor (room, conf = {}) {
|
||||
super()
|
||||
this.gcEnabled = conf.gc || false
|
||||
|
||||
Reference in New Issue
Block a user