mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Fix type
This commit is contained in:
parent
2b42d543a1
commit
d6aa9aeaac
|
@ -44,7 +44,7 @@ function getNode(tree: Node, key: string): Node | null {
|
|||
|
||||
export default function map2tree(
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
root: {},
|
||||
root: unknown,
|
||||
options: { key?: string; pushMethod?: 'push' | 'unshift' } = {},
|
||||
tree: Node = { name: options.key || 'state', children: [] }
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
|
@ -66,7 +66,8 @@ export default function map2tree(
|
|||
root && (root as { toJS: () => {} }).toJS
|
||||
? // eslint-disable-next-line @typescript-eslint/ban-types
|
||||
(root as { toJS: () => {} }).toJS()
|
||||
: root,
|
||||
: // eslint-disable-next-line @typescript-eslint/ban-types
|
||||
(root as {}),
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
(maybeImmutable: { toJS?: () => {} }, key) => {
|
||||
const value =
|
||||
|
|
Loading…
Reference in New Issue
Block a user