WebStorm 6 : minor issue with knockout.js
WebStorm 6 (version 127.27) doesn't recognize the knockout's computed() method- see attachment.
I'm using knockout in a TypeScript class - maybe this is the problem !?
But the resulting JavaScript is absolutely OK and runs as expected.
Thankx for the WebStorm :-)
arturb
Attachment(s):
Unresolved_function_or_method_computed.PNG
请先登录再写评论。
Works for me with knockout stubs from https://github.com/borisyankov/DefinitelyTyped/blob/master/knockout/knockout.d.ts. Do you use this file? If not, please provide knockout sources you are using.
Regards,
Konstantin
Thank you for the hint. Yes, with the knockout stub mentioned by you it works also for me.
I thought after I added knockout.js as a WebStorm library to the project, it should work (and it works for observable but not for computed).
But I don't mind. When it works with the stub it's OK. Thank you.
Best,
arturb