-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Conditional types - Extract works incorrect #22899
Milestone
Comments
Merged
sirian
changed the title
Conditional types - Extract work incorrect
Conditional types - Extract works incorrect
Mar 27, 2018
Is this not a duplicate of #22347? |
Yes, it is pretty much a duplicate. And a workaround similar to the one mentioned in #22347 (comment) can be used: declare function isFunction<T>(value: T): value is (Extract<T, Function> & Function); That said, it would be nice if it actually worked, so I'm going to keep this one open as a bug. |
It's wrong
|
See #21732 regarding the example involving the |
|
@ahejlsberg maybe it should be |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TypeScript Version: 2.8.0-rc, 2.9.0-dev.20180327
The text was updated successfully, but these errors were encountered: