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
2 comments

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

0

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

0

Please sign in to leave a comment.