Skip to content

Add constraint to DummyChannelOwner for (upcoming) TypeScript 4.8 #14840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

DanielRosenwasser
Copy link
Member

@DanielRosenwasser DanielRosenwasser commented Jun 13, 2022

Hi there! 👋

TypeScript recently added some stricter checking around unconstrained generics being incompatible with emptyish object types. The changes are only in nightly versions of TypeScript right now, but we've been exploring how open-source projects have been impacted here. In TypeScript 4.8, you'll get the following error without this change.

error TS2344: Type 'T' does not satisfy the constraint 'Channel'.

@DanielRosenwasser DanielRosenwasser changed the title Add constraint to DummyChannelOwner. Add constraint to DummyChannelOwner for (upcoming) TypeScript 4.8 Jun 13, 2022
@DanielRosenwasser
Copy link
Member Author

Deferring to #14847.

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.

1 participant