Skip to content

Commit 1c34305

Browse files
committed
Remove tuple label syntax that fails on TS 3.9
1 parent 0d5ded6 commit 1c34305

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

src/components/connectAdvanced.tsx

+4-16
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
import hoistStatics from 'hoist-non-react-statics'
2-
import React, {
3-
useContext,
4-
useMemo,
5-
useRef,
6-
useReducer,
7-
useLayoutEffect,
8-
} from 'react'
2+
import React, { useContext, useMemo, useRef, useReducer } from 'react'
93
import { isValidElementType, isContextConsumer } from 'react-is'
10-
import type { Store, AnyAction } from 'redux'
4+
import type { Store } from 'redux'
115
import type { SelectorFactory } from '../connect/selectorFactory'
126
import { createSubscription, Subscription } from '../utils/Subscription'
137
import { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect'
14-
import type {
15-
DispatchProp,
16-
Matching,
17-
GetProps,
18-
AdvancedComponentDecorator,
19-
ConnectedComponent,
20-
} from '../types'
8+
import type { AdvancedComponentDecorator, ConnectedComponent } from '../types'
219

2210
import {
2311
ReactReduxContext,
@@ -38,7 +26,7 @@ const stringifyComponent = (Comp: unknown) => {
3826
}
3927

4028
function storeStateUpdatesReducer(
41-
state: [payload: unknown, counter: number],
29+
state: [unknown, number],
4230
action: { payload: unknown }
4331
) {
4432
const [, updateCount] = state

0 commit comments

Comments
 (0)