jfathman
jfathman

Reputation: 808

TypeScript typings file node.d.ts versus index.d.ts

I've been experimenting with TypeScript on Node.js (and liking it a lot).

Somewhere along the way, I ended up with this node.d.ts which worked:

/// <reference path='./typings/main/ambient/node/node.d.ts' />  

Today I started a fresh project and typings gave me this instead:

/// <reference path='./typings/main/ambient/node/index.d.ts' />

It works, but I am wondering why the file name is now index.d.ts instead of node.d.ts.

Upvotes: 0

Views: 665

Answers (1)

jfathman
jfathman

Reputation: 808

This was in fact a recent intentional change by the Typings project maintainer. You can read more about it here: https://github.com/typings/typings/issues/352

Upvotes: 1

Related Questions