mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 22:50:11 +03:00
Fix build
This commit is contained in:
parent
c1a3a68da4
commit
4f72018402
|
@ -1,4 +1,4 @@
|
||||||
import { createSelector } from '@reduxjs/toolkit';
|
import { createSelector, Selector } from '@reduxjs/toolkit';
|
||||||
import React, { ReactNode, PureComponent } from 'react';
|
import React, { ReactNode, PureComponent } from 'react';
|
||||||
import { Action, AnyAction } from 'redux';
|
import { Action, AnyAction } from 'redux';
|
||||||
import { emptyRecord, identity } from '../utils/object';
|
import { emptyRecord, identity } from '../utils/object';
|
||||||
|
@ -12,7 +12,11 @@ export interface QueryPreviewActionsProps {
|
||||||
const keySep = ' - ';
|
const keySep = ' - ';
|
||||||
|
|
||||||
export class QueryPreviewActions extends PureComponent<QueryPreviewActionsProps> {
|
export class QueryPreviewActions extends PureComponent<QueryPreviewActionsProps> {
|
||||||
selectFormattedActions = createSelector<
|
selectFormattedActions: Selector<
|
||||||
|
AnyAction[],
|
||||||
|
Record<string, AnyAction>,
|
||||||
|
never
|
||||||
|
> = createSelector<
|
||||||
[(actions: AnyAction[]) => AnyAction[]],
|
[(actions: AnyAction[]) => AnyAction[]],
|
||||||
Record<string, AnyAction>
|
Record<string, AnyAction>
|
||||||
>(identity, (actions) => {
|
>(identity, (actions) => {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { createSelector } from '@reduxjs/toolkit';
|
import { createSelector, Selector } from '@reduxjs/toolkit';
|
||||||
import React, { ComponentProps, ReactNode } from 'react';
|
import React, { ComponentProps, ReactNode } from 'react';
|
||||||
import JSONTree from 'react-json-tree';
|
import JSONTree from 'react-json-tree';
|
||||||
import { Base16Theme, StylingFunction } from 'react-base16-styling';
|
import { Base16Theme, StylingFunction } from 'react-base16-styling';
|
||||||
|
@ -36,12 +36,20 @@ export class TreeView extends React.PureComponent<TreeViewProps> {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
readonly selectLabelRenderer = createSelector<
|
readonly selectLabelRenderer: Selector<
|
||||||
|
StylingFunction,
|
||||||
|
ReturnType<typeof createTreeItemLabelRenderer>,
|
||||||
|
never
|
||||||
|
> = createSelector<
|
||||||
[(stylingFunction: StylingFunction) => StylingFunction],
|
[(stylingFunction: StylingFunction) => StylingFunction],
|
||||||
ReturnType<typeof createTreeItemLabelRenderer>
|
ReturnType<typeof createTreeItemLabelRenderer>
|
||||||
>(identity, createTreeItemLabelRenderer);
|
>(identity, createTreeItemLabelRenderer);
|
||||||
|
|
||||||
readonly selectGetItemString = createSelector<
|
readonly selectGetItemString: Selector<
|
||||||
|
StylingFunction,
|
||||||
|
(type: string, data: unknown) => ReactNode,
|
||||||
|
never
|
||||||
|
> = createSelector<
|
||||||
[(stylingFunction: StylingFunction) => StylingFunction],
|
[(stylingFunction: StylingFunction) => StylingFunction],
|
||||||
(type: string, data: unknown) => ReactNode
|
(type: string, data: unknown) => ReactNode
|
||||||
>(
|
>(
|
||||||
|
@ -50,7 +58,11 @@ export class TreeView extends React.PureComponent<TreeViewProps> {
|
||||||
getItemString(styling, type, data, DATA_TYPE_KEY, false)
|
getItemString(styling, type, data, DATA_TYPE_KEY, false)
|
||||||
);
|
);
|
||||||
|
|
||||||
readonly selectTheme = createSelector<
|
readonly selectTheme: Selector<
|
||||||
|
Base16Theme,
|
||||||
|
ReturnType<typeof getJsonTreeTheme>,
|
||||||
|
never
|
||||||
|
> = createSelector<
|
||||||
[(base16Theme: Base16Theme) => Base16Theme],
|
[(base16Theme: Base16Theme) => Base16Theme],
|
||||||
ReturnType<typeof getJsonTreeTheme>
|
ReturnType<typeof getJsonTreeTheme>
|
||||||
>(identity, getJsonTreeTheme);
|
>(identity, getJsonTreeTheme);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user