Reputation: 10090
I am trying to create a TypeScript NodeJS project in VS 2015, I have installed Typings, and have used it to install TypeScript definitions for express and other node frameworks
However, when I use /// <reference path="Scripts/typings/globals/express/index.d.ts" />
in my .ts
file, I do not receive any intellisense when trying to use express. There are no errors, and it finds the definition file.
How can I get the TypeScript definitions to work?
Upvotes: 0
Views: 80
Reputation: 10090
Turns out I was using this syntax: var express = require('express');
When I should have been using this: import express = require('express');
Upvotes: 1