Fix types

This commit is contained in:
Nathan Bierema 2023-03-26 20:32:03 -04:00
parent b0bff52c4c
commit a543142656
3 changed files with 2 additions and 9 deletions

View File

@ -70,7 +70,6 @@
"@types/jsan": "^3.1.2", "@types/jsan": "^3.1.2",
"@types/object-path": "^0.11.1", "@types/object-path": "^0.11.1",
"@types/react": "^18.0.29", "@types/react": "^18.0.29",
"@types/simple-diff": "^1.6.1",
"@typescript-eslint/eslint-plugin": "^5.56.0", "@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0", "@typescript-eslint/parser": "^5.56.0",
"eslint": "^8.36.0", "eslint": "^8.36.0",

View File

@ -2,7 +2,7 @@ import React, { PureComponent, Component, ReactNode } from 'react';
import { stringify } from 'javascript-stringify'; import { stringify } from 'javascript-stringify';
import objectPath from 'object-path'; import objectPath from 'object-path';
import jsan from 'jsan'; import jsan from 'jsan';
import diff, { Event } from 'simple-diff'; import diff, { DiffEvent } from 'simple-diff';
import es6template from 'es6template'; import es6template from 'es6template';
import { Editor } from '@redux-devtools/ui'; import { Editor } from '@redux-devtools/ui';
import { TabComponentProps } from '@redux-devtools/inspector-monitor'; import { TabComponentProps } from '@redux-devtools/inspector-monitor';
@ -30,7 +30,7 @@ export function compare<S>(
) { ) {
const paths: string[] = []; // Already processed const paths: string[] = []; // Already processed
function generate( function generate(
event: Event | { type: 'move-item'; newPath: (string | number)[] } event: DiffEvent | { type: 'move-item'; newPath: (string | number)[] }
) { ) {
let curState: number | string | undefined; let curState: number | string | undefined;
let path = fromPath(event.newPath); let path = fromPath(event.newPath);

View File

@ -1226,7 +1226,6 @@ importers:
'@types/object-path': ^0.11.1 '@types/object-path': ^0.11.1
'@types/prop-types': ^15.7.5 '@types/prop-types': ^15.7.5
'@types/react': ^18.0.29 '@types/react': ^18.0.29
'@types/simple-diff': ^1.6.1
'@typescript-eslint/eslint-plugin': ^5.56.0 '@typescript-eslint/eslint-plugin': ^5.56.0
'@typescript-eslint/parser': ^5.56.0 '@typescript-eslint/parser': ^5.56.0
es6template: ^1.0.5 es6template: ^1.0.5
@ -1276,7 +1275,6 @@ importers:
'@types/jsan': 3.1.2 '@types/jsan': 3.1.2
'@types/object-path': 0.11.1 '@types/object-path': 0.11.1
'@types/react': 18.0.29 '@types/react': 18.0.29
'@types/simple-diff': 1.6.1
'@typescript-eslint/eslint-plugin': 5.56.0_iskin7c6dxqunwflhstekcjqmq '@typescript-eslint/eslint-plugin': 5.56.0_iskin7c6dxqunwflhstekcjqmq
'@typescript-eslint/parser': 5.56.0_vgl77cfdswitgr47lm5swmv43m '@typescript-eslint/parser': 5.56.0_vgl77cfdswitgr47lm5swmv43m
eslint: 8.36.0 eslint: 8.36.0
@ -8898,10 +8896,6 @@ packages:
'@types/node': 18.15.10 '@types/node': 18.15.10
dev: false dev: false
/@types/simple-diff/1.6.1:
resolution: {integrity: sha512-WrrrSBzFqKPi9v1tgWojfpw9N+kxBXftxK0Eo0C7iQ6KT/S/Vq1/H/XmSvhHmoUkFO7sE0/PVIHFqab7IJU7Xw==}
dev: true
/@types/simple-element-resize-detector/1.3.0: /@types/simple-element-resize-detector/1.3.0:
resolution: {integrity: sha512-z89ForrCNg+4uwTHjwBCM9LjcsXYC/4O8u3tSi+82v2LCbfiYFpkjH/qQVkDewFBK6FUG7RRV7jw78EGs2maoQ==} resolution: {integrity: sha512-z89ForrCNg+4uwTHjwBCM9LjcsXYC/4O8u3tSi+82v2LCbfiYFpkjH/qQVkDewFBK6FUG7RRV7jw78EGs2maoQ==}
dev: false dev: false