3

I'm hoping to find a .d.ts file for both Node and Express, which would enable Intellisense, in typescript. So far, I've tried using a Node.d.ts file provided here:

https://github.com/borisyankov/DefinitelyTyped/tree/master/node

But enabliing this file throws a lot of "file not found" errors in Webstorm, for files like "crypto" "net" and "stream" I'm not sure where to find these. They don't seem to be available on Github.

--EDIT--

Errors have somehow changed on their own and now I'm seeing errors for functions "write" and "listen". So farmy program runs, but its troublesome to have the errors.

I'm coding in webstorm.

6
  • do you mean 'incompatible override' errors shown for some functions declared in node.d.ts? Commented Dec 9, 2013 at 14:13
  • Could you provide the exact error you are getting? Commented Dec 11, 2013 at 10:18
  • @lena Interestingly, the errors have changed now, since I made some modifications to the files. Now it says - "Incompatible override for member from Server/Writable Stream". Commented Dec 11, 2013 at 10:26
  • I've posted a fresh question and its better framed over here: stackoverflow.com/questions/20515705/… Commented Dec 11, 2013 at 10:26
  • @EternallyCurious since stackoverflow.com/questions/20515705/… is answered and so is stackoverflow.com/questions/20542254/… can this question be deleted? Commented Jan 26, 2014 at 0:28

1 Answer 1

0

Have a look at the TEAN project, combining Typescript+ExpressJS+Angular+NodeJS

https://github.com/urigoren/TEAN/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.