fix a few tsc errors (96 remaining)

This commit is contained in:
Kevin Jahns
2019-03-13 02:15:43 +01:00
parent 5a42a94cf4
commit 293527e62b
15 changed files with 63 additions and 86 deletions

View File

@@ -5,10 +5,9 @@
import { Type } from '../structs/Type.js'
import { ItemJSON } from '../structs/ItemJSON.js'
import { ItemString } from '../structs/ItemString.js'
import * as stringify from '../utils/structStringify.js'
import { YEvent } from '../utils/YEvent.js'
import { Transaction } from '../utils/Transaction.js' // eslint-disable-line
import { Item } from '../structs/Item.js' // eslint-disable-line
import { Item, stringifyItemID, logItemHelper } from '../structs/Item.js' // eslint-disable-line
import { ItemBinary } from '../structs/ItemBinary.js'
import { isVisible } from '../utils/snapshot.js'
@@ -402,6 +401,6 @@ export class YArray extends Type {
* @private
*/
_logString () {
return stringify.logItemHelper('YArray', this, `start:${stringify.stringifyItemID(this._start)}"`)
return logItemHelper('YArray', this, `start:${stringifyItemID(this._start)}"`)
}
}

View File

@@ -2,10 +2,9 @@
* @module types
*/
import { Item } from '../structs/Item.js'
import { Item, logItemHelper } from '../structs/Item.js'
import { Type } from '../structs/Type.js'
import { ItemJSON } from '../structs/ItemJSON.js'
import * as stringify from '../utils/structStringify.js'
import { YEvent } from '../utils/YEvent.js'
import { ItemBinary } from '../structs/ItemBinary.js'
import { isVisible } from '../utils/snapshot.js'
@@ -208,6 +207,6 @@ export class YMap extends Type {
* @private
*/
_logString () {
return stringify.logItemHelper('YMap', this, `mapSize:${this._map.size}`)
return logItemHelper('YMap', this, `mapSize:${this._map.size}`)
}
}

View File

@@ -2,10 +2,10 @@
* @module types
*/
import { logItemHelper } from '../structs/Item.js'
import { ItemEmbed } from '../structs/ItemEmbed.js'
import { ItemString } from '../structs/ItemString.js'
import { ItemFormat } from '../structs/ItemFormat.js'
import * as stringify from '../utils/structStringify.js'
import { YArrayEvent, YArray } from './YArray.js'
import { isVisible } from '../utils/snapshot.js'
@@ -720,6 +720,6 @@ export class YText extends YArray {
* @private
*/
_logString () {
return stringify.logItemHelper('YText', this)
return logItemHelper('YText', this)
}
}

View File

@@ -2,13 +2,13 @@
* @module types
*/
import { logItemHelper } from '../structs/Item.js'
import { YMap } from './YMap.js'
import * as encoding from 'lib0/encoding.js'
import * as decoding from 'lib0/decoding.js'
import { Y } from '../utils/Y.js' // eslint-disable-line
import { YArray } from './YArray.js'
import { YXmlEvent } from './YXmlEvent.js'
import * as stringify from '../utils/structStringify.js'
/**
* Define the elements to which a set of CSS queries apply.
@@ -234,7 +234,7 @@ export class YXmlFragment extends YArray {
* @private
*/
_logString () {
return stringify.logItemHelper('YXml', this)
return logItemHelper('YXml', this)
}
}