jsdoc fixes

This commit is contained in:
Kevin Jahns
2018-11-25 05:43:18 +01:00
parent 9f9f465238
commit e4a5f2caec
7 changed files with 22 additions and 16 deletions

View File

@@ -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

View File

@@ -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