Skip to content

Commit

Permalink
Fix CustomContext in connect-options-and-issues.test-d.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Feb 8, 2024
1 parent 7db40df commit 9b6df99
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/typetests/connect-options-and-issues.test-d.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
/* eslint-disable @typescript-eslint/no-unused-vars, react/prop-types */
import * as PropTypes from 'prop-types'
import * as React from 'react'
import PropTypes from 'prop-types'
import React from 'react'
import type { ActionCreator, AnyAction, Dispatch, Reducer, Store } from 'redux'
import { createStore } from 'redux'
import type {
Connect,
ConnectedProps,
DispatchProp,
MapStateToProps,
ReactReduxContextValue,
} from '../../src/index'
import { Provider, ReactReduxContext, connect } from '../../src/index'

// Test cases written in a way to isolate types and variables and verify the
// output of `connect` to make sure the signature is what is expected

const CustomContext = React.createContext(
null,
) as unknown as typeof ReactReduxContext
const CustomContext = React.createContext<ReactReduxContextValue | null>(null)

describe('type tests', () => {
test('MergedPropsInference', () => {
Expand Down

0 comments on commit 9b6df99

Please sign in to comment.