Skip to content

Commit dbaa501

Browse files
chore(overmind): fix declaration file pointer in package.json
1 parent 713f4f0 commit dbaa501

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

packages/node_modules/overmind-devtools/src/client/app/derived.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
import { derived } from 'overmind'
2-
import { State } from './state'
2+
import { State, Component } from './state'
33

44
export const currentApp = derived(
55
(state: State) => state.apps[state.currentPort]
66
)
77

88
export const componentsMounted = derived((state: State) =>
9-
Object.keys(state.currentApp.components).reduce((aggr, key) => {
10-
if (state.currentApp.components[key].isMounted) {
11-
return aggr.concat(state.currentApp.components[key])
12-
}
9+
Object.keys(state.currentApp.components).reduce(
10+
(aggr, key) => {
11+
if (state.currentApp.components[key].isMounted) {
12+
return aggr.concat(state.currentApp.components[key])
13+
}
1314

14-
return aggr
15-
}, [])
15+
return aggr
16+
},
17+
[] as Component[]
18+
)
1619
)
1720

1821
export const componentsUpdateCount = derived((state: State) =>

packages/node_modules/overmind/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "git+https://github.com/cerebral/overmind.git",
88
"main": "lib/index.js",
99
"module": "es/index.js",
10-
"types": "lib/bundle.d.ts",
10+
"types": "lib/index.d.ts",
1111
"scripts": {
1212
"build": "npm run build:lib & npm run build:es",
1313
"build:lib": "tsc --outDir lib --module commonjs",

0 commit comments

Comments
 (0)