Skip to content

Commit 0863934

Browse files
chore(typing): fix typing issues
1 parent 33b19e9 commit 0863934

File tree

8 files changed

+3303
-2941
lines changed

8 files changed

+3303
-2941
lines changed

package-lock.json

Lines changed: 3292 additions & 2924 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"ts-jest": "23.10.4",
106106
"ts-loader": "4.4.2",
107107
"tslib": "1.9.3",
108-
"typescript": "^3.4.5",
108+
"typescript": "^3.5.2",
109109
"typescript-eslint-parser": "^21.0.1",
110110
"url-loader": "1.0.1",
111111
"vue": "2.5.16",

packages/node_modules/overmind-devtools-vscode/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,12 @@
4747
"test": "yarn run compile && node ./node_modules/vscode/bin/test"
4848
},
4949
"devDependencies": {
50-
"@types/mocha": "^2.2.42",
5150
"@types/node": "^10.12.21",
5251
"tslint": "^5.12.1",
53-
"typescript": "^3.3.1",
5452
"vscode": "^1.1.34"
5553
},
5654
"dependencies": {
57-
"ws": "^7.0.0"
55+
"ws": "^7.0.0",
56+
"overmind-devtools-client": "next"
5857
}
5958
}

packages/node_modules/overmind-devtools/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99
"overmind-devtools": "bin.js"
1010
},
1111
"scripts": {
12-
"start": "electron ./src/main",
13-
"typecheck": "tsc --noEmit",
14-
"test": "jest --runInBand",
15-
"test:watch": "jest --watch --updateSnapshot --coverage false",
16-
"prepare": "npm run build",
17-
"posttest": "npm run typecheck"
12+
"start": "electron ./src/main"
1813
},
1914
"keywords": [
2015
"overmind",
@@ -26,7 +21,7 @@
2621
"color-hash": "^1.0.3",
2722
"electron": "^2.0.8",
2823
"electron-json-storage": "^4.1.0",
29-
"ws": "^5.2.1",
24+
"ws": "^7.0.0",
3025
"overmind-devtools-client": "next"
3126
},
3227
"devDependencies": {

packages/node_modules/overmind/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export class Overmind<ThisConfig extends IConfiguration>
245245
this.state = proxyStateTree.state
246246
this.effects = configuration.effects || {}
247247
this.proxyStateTree = proxyStateTree
248-
this.eventHub = eventHub as EventEmitter<Event>
248+
this.eventHub = eventHub as EventEmitter<Events>
249249
this.mode = mode
250250

251251
if (mode.mode === MODE_SSR) {

packages/node_modules/proxy-state-tree/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"test:watch": "jest --watch --updateSnapshot --coverage false",
1616
"prebuild": "npm run clean",
1717
"postbuild": "rimraf {lib,es}/**/__tests__",
18-
"posttest": "npm run typecheck"
18+
"posttest": "npm run typecheck"
1919
},
2020
"repository": {
2121
"type": "git",

packages/node_modules/proxy-state-tree/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class ProxyStateTree<T extends object> implements IProxyStateTree<T> {
141141
}
142142
forceFlush() {
143143
const emptyMutations = []
144-
const emptyPaths = new Set()
144+
const emptyPaths = []
145145
for (let key in this.pathDependencies) {
146146
const callbacks = this.pathDependencies[key]
147147
callbacks.forEach((callback) => {
@@ -179,8 +179,8 @@ export class ProxyStateTree<T extends object> implements IProxyStateTree<T> {
179179
}
180180
}
181181

182-
const paths = new Set()
183-
const pathCallbacksToCall = new Set()
182+
const paths: Set<string> = new Set()
183+
const pathCallbacksToCall: Set<ITrackCallback> = new Set()
184184

185185
const flushId = this.currentFlushId++
186186

packages/node_modules/proxy-state-tree/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface IMutationTree<T extends object> {
3939
export interface ITrackCallback {
4040
(
4141
mutations: IMutation[],
42-
paths: Set<string>,
42+
paths: Array<string>,
4343
flushId: number,
4444
isAsync: boolean
4545
): void

0 commit comments

Comments
 (0)