Skip to content

Commit

Permalink
remove node type information
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Feb 6, 2021
1 parent a6853df commit 5adc762
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions awareness.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Awareness extends Observable {
* @type {Map<number, MetaClientState>}
*/
this.meta = new Map()
this._checkInterval = setInterval(() => {
this._checkInterval = /** @type {any} */ (setInterval(() => {
const now = time.getUnixTime()
if (this.getLocalState() !== null && (outdatedTimeout / 2 <= now - /** @type {{lastUpdated:number}} */ (this.meta.get(this.clientID)).lastUpdated)) {
// renew local clock
Expand All @@ -74,7 +74,7 @@ export class Awareness extends Observable {
if (remove.length > 0) {
removeAwarenessStates(this, remove, 'timeout')
}
}, math.floor(outdatedTimeout / 10))
}, math.floor(outdatedTimeout / 10)))
doc.on('destroy', () => {
this.destroy()
})
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
"lib0": "^0.2.35"
},
"devDependencies": {
"concurrently": "^5.3.0",
"rollup": "^2.30.0",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.1",
"concurrently": "^5.3.0",
"rollup": "^2.30.0",
"standard": "^12.0.1",
"typescript": "^3.9.7",
"typescript": "^4.1.3",
"yjs": "^13.4.9"
},
"peerDependenies": {
Expand Down

0 comments on commit 5adc762

Please sign in to comment.