mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 06:00:07 +03:00
Remove proptypes
This commit is contained in:
parent
9968ab38dc
commit
3f920cc68c
|
@ -47,8 +47,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.6",
|
"@babel/runtime": "^7.20.6",
|
||||||
"@types/lodash": "^4.14.191",
|
"@types/lodash": "^4.14.191",
|
||||||
"@types/prop-types": "^15.7.5",
|
|
||||||
"prop-types": "^15.8.1",
|
|
||||||
"react-base16-styling": "^0.9.1"
|
"react-base16-styling": "^0.9.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import JSONArrow from './JSONArrow';
|
import JSONArrow from './JSONArrow';
|
||||||
import type { CircularCache, CommonInternalProps } from './types';
|
import type { CircularCache, CommonInternalProps } from './types';
|
||||||
|
|
||||||
|
@ -17,14 +16,6 @@ interface State {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class ItemRange extends React.Component<Props, State> {
|
export default class ItemRange extends React.Component<Props, State> {
|
||||||
static propTypes = {
|
|
||||||
styling: PropTypes.func.isRequired,
|
|
||||||
from: PropTypes.number.isRequired,
|
|
||||||
to: PropTypes.number.isRequired,
|
|
||||||
renderChildNodes: PropTypes.func.isRequired,
|
|
||||||
nodeType: PropTypes.string.isRequired,
|
|
||||||
};
|
|
||||||
|
|
||||||
constructor(props: Props) {
|
constructor(props: Props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = { expanded: false };
|
this.state = { expanded: false };
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import JSONNestedNode from './JSONNestedNode';
|
import JSONNestedNode from './JSONNestedNode';
|
||||||
import type { CommonInternalProps } from './types';
|
import type { CommonInternalProps } from './types';
|
||||||
|
|
||||||
|
@ -28,8 +27,4 @@ const JSONArrayNode: React.FunctionComponent<Props> = ({ data, ...props }) => (
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
JSONArrayNode.propTypes = {
|
|
||||||
data: PropTypes.array,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default JSONArrayNode;
|
export default JSONArrayNode;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import type { StylingFunction } from 'react-base16-styling';
|
import type { StylingFunction } from 'react-base16-styling';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
@ -12,7 +11,7 @@ interface Props {
|
||||||
|
|
||||||
const JSONArrow: React.FunctionComponent<Props> = ({
|
const JSONArrow: React.FunctionComponent<Props> = ({
|
||||||
styling,
|
styling,
|
||||||
arrowStyle,
|
arrowStyle = 'single',
|
||||||
expanded,
|
expanded,
|
||||||
nodeType,
|
nodeType,
|
||||||
onClick,
|
onClick,
|
||||||
|
@ -27,16 +26,4 @@ const JSONArrow: React.FunctionComponent<Props> = ({
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
JSONArrow.propTypes = {
|
|
||||||
styling: PropTypes.func.isRequired,
|
|
||||||
arrowStyle: PropTypes.oneOf(['single', 'double']),
|
|
||||||
expanded: PropTypes.bool.isRequired,
|
|
||||||
nodeType: PropTypes.string.isRequired,
|
|
||||||
onClick: PropTypes.func.isRequired,
|
|
||||||
};
|
|
||||||
|
|
||||||
JSONArrow.defaultProps = {
|
|
||||||
arrowStyle: 'single',
|
|
||||||
};
|
|
||||||
|
|
||||||
export default JSONArrow;
|
export default JSONArrow;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import JSONArrow from './JSONArrow';
|
import JSONArrow from './JSONArrow';
|
||||||
import getCollectionEntries from './getCollectionEntries';
|
import getCollectionEntries from './getCollectionEntries';
|
||||||
import JSONNode from './JSONNode';
|
import JSONNode from './JSONNode';
|
||||||
|
@ -111,26 +110,6 @@ function getStateFromProps(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class JSONNestedNode extends React.Component<Props, State> {
|
export default class JSONNestedNode extends React.Component<Props, State> {
|
||||||
static propTypes = {
|
|
||||||
getItemString: PropTypes.func.isRequired,
|
|
||||||
nodeTypeIndicator: PropTypes.any,
|
|
||||||
nodeType: PropTypes.string.isRequired,
|
|
||||||
data: PropTypes.any,
|
|
||||||
hideRoot: PropTypes.bool.isRequired,
|
|
||||||
createItemString: PropTypes.func.isRequired,
|
|
||||||
styling: PropTypes.func.isRequired,
|
|
||||||
collectionLimit: PropTypes.number,
|
|
||||||
keyPath: PropTypes.arrayOf(
|
|
||||||
PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
||||||
).isRequired,
|
|
||||||
labelRenderer: PropTypes.func.isRequired,
|
|
||||||
shouldExpandNode: PropTypes.func,
|
|
||||||
level: PropTypes.number.isRequired,
|
|
||||||
sortObjectKeys: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
|
|
||||||
isCircular: PropTypes.bool,
|
|
||||||
expandable: PropTypes.bool,
|
|
||||||
};
|
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
data: [],
|
data: [],
|
||||||
circularCache: [],
|
circularCache: [],
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import objType from './objType';
|
import objType from './objType';
|
||||||
import JSONObjectNode from './JSONObjectNode';
|
import JSONObjectNode from './JSONObjectNode';
|
||||||
import JSONArrayNode from './JSONArrayNode';
|
import JSONArrayNode from './JSONArrayNode';
|
||||||
|
@ -103,16 +102,4 @@ const JSONNode: React.FunctionComponent<Props> = ({
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
JSONNode.propTypes = {
|
|
||||||
getItemString: PropTypes.func.isRequired,
|
|
||||||
keyPath: PropTypes.arrayOf(
|
|
||||||
PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
||||||
).isRequired,
|
|
||||||
labelRenderer: PropTypes.func.isRequired,
|
|
||||||
styling: PropTypes.func.isRequired,
|
|
||||||
value: PropTypes.any,
|
|
||||||
valueRenderer: PropTypes.func.isRequired,
|
|
||||||
isCustomNode: PropTypes.func.isRequired,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default JSONNode;
|
export default JSONNode;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import JSONNestedNode from './JSONNestedNode';
|
import JSONNestedNode from './JSONNestedNode';
|
||||||
import type { CommonInternalProps } from './types';
|
import type { CommonInternalProps } from './types';
|
||||||
|
|
||||||
|
@ -27,9 +26,4 @@ const JSONObjectNode: React.FunctionComponent<Props> = ({ data, ...props }) => (
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
JSONObjectNode.propTypes = {
|
|
||||||
data: PropTypes.object,
|
|
||||||
nodeType: PropTypes.string.isRequired,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default JSONObjectNode;
|
export default JSONObjectNode;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import type {
|
import type {
|
||||||
GetItemString,
|
GetItemString,
|
||||||
Key,
|
Key,
|
||||||
|
@ -44,16 +43,4 @@ const JSONValueNode: React.FunctionComponent<Props> = ({
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
|
|
||||||
JSONValueNode.propTypes = {
|
|
||||||
nodeType: PropTypes.string.isRequired,
|
|
||||||
styling: PropTypes.func.isRequired,
|
|
||||||
labelRenderer: PropTypes.func.isRequired,
|
|
||||||
keyPath: PropTypes.arrayOf(
|
|
||||||
PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
||||||
).isRequired,
|
|
||||||
valueRenderer: PropTypes.func.isRequired,
|
|
||||||
value: PropTypes.any,
|
|
||||||
valueGetter: PropTypes.func,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default JSONValueNode;
|
export default JSONValueNode;
|
||||||
|
|
|
@ -536,7 +536,6 @@ importers:
|
||||||
'@types/jest': ^29.2.4
|
'@types/jest': ^29.2.4
|
||||||
'@types/lodash': ^4.14.191
|
'@types/lodash': ^4.14.191
|
||||||
'@types/node': ^18.11.17
|
'@types/node': ^18.11.17
|
||||||
'@types/prop-types': ^15.7.5
|
|
||||||
'@types/react': ^18.0.26
|
'@types/react': ^18.0.26
|
||||||
'@types/react-test-renderer': ^18.0.0
|
'@types/react-test-renderer': ^18.0.0
|
||||||
'@typescript-eslint/eslint-plugin': ^5.47.0
|
'@typescript-eslint/eslint-plugin': ^5.47.0
|
||||||
|
@ -547,7 +546,6 @@ importers:
|
||||||
eslint-plugin-react: ^7.31.11
|
eslint-plugin-react: ^7.31.11
|
||||||
eslint-plugin-react-hooks: ^4.6.0
|
eslint-plugin-react-hooks: ^4.6.0
|
||||||
jest: ^29.3.1
|
jest: ^29.3.1
|
||||||
prop-types: ^15.8.1
|
|
||||||
react: ^18.2.0
|
react: ^18.2.0
|
||||||
react-base16-styling: ^0.9.1
|
react-base16-styling: ^0.9.1
|
||||||
react-test-renderer: ^18.2.0
|
react-test-renderer: ^18.2.0
|
||||||
|
@ -560,8 +558,6 @@ importers:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.20.6
|
'@babel/runtime': 7.20.6
|
||||||
'@types/lodash': 4.14.191
|
'@types/lodash': 4.14.191
|
||||||
'@types/prop-types': 15.7.5
|
|
||||||
prop-types: 15.8.1
|
|
||||||
react-base16-styling: link:../react-base16-styling
|
react-base16-styling: link:../react-base16-styling
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@babel/cli': 7.19.3_@babel+core@7.20.5
|
'@babel/cli': 7.19.3_@babel+core@7.20.5
|
||||||
|
|
Loading…
Reference in New Issue
Block a user