Skip to content

Remove useless constraint#1306

Merged
darthtrevino merged 1 commit intoreact-dnd:masterfrom
weswigham:patch-1
Mar 31, 2019
Merged

Remove useless constraint#1306
darthtrevino merged 1 commit intoreact-dnd:masterfrom
weswigham:patch-1

Conversation

@weswigham
Copy link
Copy Markdown
Contributor

@weswigham weswigham commented Mar 30, 2019

I found this while testing DefinitelyTyped against microsoft/TypeScript#30637.

Fixing microsoft/TypeScript#30634 will make this constraint fail to check for most users - this type seems to have been copied from (to?) react-redux, which has taken in a similar change on DT:

DefinitelyTyped/DefinitelyTyped#34335
DefinitelyTyped/DefinitelyTyped#34339

The constraint on DecorationTargetProps was circularly defined anyway so despite not having an error (due to deferral in the mapped type of Shared), it never actually had an effective constraint.

Fixing microsoft/TypeScript#30634 will make this constraint fail to check for most users - this type seems to have been copied from (to?) `react-redux`, which has taken in a similar change on DT:

DefinitelyTyped/DefinitelyTyped#34335
DefinitelyTyped/DefinitelyTyped#34339
@darthtrevino
Copy link
Copy Markdown
Member

I did copy the structure here from react-redux. Thanks for the pr!

@darthtrevino darthtrevino merged commit e8fab37 into react-dnd:master Mar 31, 2019
@weswigham weswigham deleted the patch-1 branch March 31, 2019 19:19
darthtrevino pushed a commit that referenced this pull request Feb 3, 2022
Fixing microsoft/TypeScript#30634 will make this constraint fail to check for most users - this type seems to have been copied from (to?) `react-redux`, which has taken in a similar change on DT:

DefinitelyTyped/DefinitelyTyped#34335
DefinitelyTyped/DefinitelyTyped#34339
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants