Here's a minimal TypeScript project using tsd to manage 3rd party modules.
When editing the app.ts
file in Visual Studio Code I get all that nice code
completion. And tsc app.ts
will compile without complaints.
typings | |
app.js |
/// <reference path="typings/tsd.d.ts" /> | |
import * as os from "os"; | |
console.log(`Your tempdir is at: ${os.tmpdir()}`); |
{} |
{ | |
"version": "v4", | |
"repo": "borisyankov/DefinitelyTyped", | |
"ref": "master", | |
"path": "typings", | |
"bundle": "typings/tsd.d.ts", | |
"installed": { | |
"node/node.d.ts": { | |
"commit": "513510a89acc648422c9abb047265116198f99ee" | |
} | |
} | |
} |