Skip to content

Fix for Typescript 4.5 inference breaks in the PromiseProxy#3144

Merged
jamesdaniels merged 3 commits into
masterfrom
typescript_4.5_fix
Feb 7, 2022
Merged

Fix for Typescript 4.5 inference breaks in the PromiseProxy#3144
jamesdaniels merged 3 commits into
masterfrom
typescript_4.5_fix

Conversation

@jamesdaniels
Copy link
Copy Markdown
Member

@jamesdaniels jamesdaniels commented Feb 7, 2022

Typescript 4.5 changed how inference with extends works, A) don't use Function as a type as that's a foot gun B) create a ReturnTypeOrNever/ParametersOrNever utility types to handle the inference changes. #3090 #3088

@jamesdaniels jamesdaniels merged commit f61bc7d into master Feb 7, 2022
@jamesdaniels jamesdaniels deleted the typescript_4.5_fix branch February 7, 2022 21:10
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