-
Notifications
You must be signed in to change notification settings - Fork 378
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
Union type between a callback and another type is broken in a definition #733
Comments
@fflorent hat's very cool! Any contribtution are welcome for https://github.com/angelozerr/tern.jsduck Thanks! |
PR #734 submitted
Sure. With the above patch and minor changes to the generated definition, I could manage completion to work basically. Florent |
TernJS version : 0.18.0
STR:
Object.getPrototypeOf
so that :"!type": "fn(obj: ?) -> ?|string
(well, that's stupid, but that's just for having simple reproducible steps :))Actual result:
TernJS crashes with this stack trace :
Context
I am trying to make extjs_5.0.0 plugin of the tern.jsduck project (ping @angelozerr) and some ExtJS properties (like this one) can accept both a function or a string.
Florent
The text was updated successfully, but these errors were encountered: