Skip to content

Commit 3e65176

Browse files
committed
fix: delete react-dom declare and modify react/react-dom import
1 parent b6bd47e commit 3e65176

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

test/typetests/react-redux-types.typetest.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-unused-vars, no-inner-declarations */
22
import { Component, ReactElement } from 'react'
3-
import * as React from 'react'
4-
import * as ReactDOM from 'react-dom'
3+
import React from 'react'
4+
import ReactDOM from 'react-dom'
55
import { Store, Dispatch, bindActionCreators, AnyAction } from 'redux'
66
import { connect, Provider, ConnectedProps } from '../../src/index'
77
import { expectType } from '../typeTestHelpers'

types/index.d.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
/* eslint-disable no-unused-vars */
2-
declare module 'react-dom' {
3-
export function unstable_batchedUpdates<A, B>(
4-
callback: (a: A, b: B) => any,
5-
a: A,
6-
b: B
7-
): void
8-
export function unstable_batchedUpdates<A>(
9-
callback: (a: A) => any,
10-
a: A
11-
): void
12-
export function unstable_batchedUpdates(callback: () => any): void
13-
}
142

153
declare module 'react-native' {
164
export function unstable_batchedUpdates<A, B>(

0 commit comments

Comments
 (0)