Skip to content
TypeScript's typings for some popular node.js modules
Branch: master
Clone or download
soywiz Merge pull request #56 from Farokhcpu/master
adding type for move function in fs-extra module
Latest commit c548767 Aug 17, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DefinitelyTyped @ e147cc1 - Include a module reference to DefinitelyTyped. Dec 9, 2012
.gitignore - More additions Nov 6, 2012
.gitmodules - Include a module reference to DefinitelyTyped. Dec 9, 2012
README.md Update README.md Jan 6, 2014
async.d.ts Update async.d.ts Aug 12, 2014
atpl.d.ts - Some updates to 0.9.1 Sep 2, 2013
aws-sdk.d.ts merged upstream Aug 14, 2013
cheerio.d.ts
colors.d.ts - Added colors Oct 17, 2012
connect.d.ts - Updated mongodb and added connect Nov 11, 2012
consolidate.d.ts - Consolidate Oct 4, 2012
cron.d.ts added node-cron Dec 30, 2012
express-sessions.d.ts
express-useragent.d.ts - Some updates to 0.9.1 Sep 2, 2013
express2.d.ts - Added definitions from typescript samples directories Oct 4, 2012
express3-useragent.d.ts - Fixed remaining export import Feb 9, 2013
express3.d.ts
fibers.d.ts - More additions Nov 6, 2012
form-data.d.ts
fs-extra.d.ts adding type for move function in fs-extra module Aug 17, 2016
gently.d.ts update gently usage to used typed variable Jul 26, 2013
glob.d.ts - Added glob.d.ts Oct 18, 2012
imagemagick.d.ts
jquery.d.ts - Some updates to 0.9.1 Sep 2, 2013
less.d.ts - Some updates to 0.9.1 Sep 2, 2013
memory-cache.d.ts Added definitions for memory-cache and mustache Oct 22, 2013
mime.d.ts - Added mime.d.ts Oct 18, 2012
mkdirp.d.ts - Added mkdirp.d.ts Oct 18, 2012
mocha.d.ts - Some updates to 0.9.1 Sep 2, 2013
moment.d.ts - Some updates to 0.9.1 Sep 2, 2013
mongodb.d.ts
mu2.d.ts Added definitions for memory-cache and mustache Oct 22, 2013
nconf.d.ts
nock.d.ts Updates for Typescript 0.9 Jul 26, 2013
node.d.ts Issue #49 - url.Url.query now has type 'any' Aug 23, 2014
nodeunit.d.ts make nodeunit definition compatible with --noImplicitAny Sep 24, 2013
optimist.d.ts - Added optimist Oct 17, 2012
passport.d.ts Added ts for passport (https://github.com/jaredhanson/passport) Oct 29, 2013
q.d.ts
redis.d.ts Renamed redits.d.ts to redis.d.ts Nov 18, 2012
request.d.ts
rimraf.d.ts - Added rimraf.d.ts Oct 18, 2012
semver.d.ts - Added semver.d.ts Oct 18, 2012
send.d.ts - Some updates to 0.9.1 Sep 2, 2013
should.d.ts - Some fixes Sep 23, 2013
socket.io.d.ts - Some updates to 0.9.1 Sep 2, 2013
sprintf.d.ts - Added sprintf.d.ts Oct 18, 2012
superagent.d.ts - Some fixes Sep 23, 2013
supertest.d.ts
swig.d.ts - Added swig Oct 16, 2012
swiz.d.ts Updates for Typescript 0.9 Jul 26, 2013
teechart.d.ts TeeChart.js definitions for TypeScript (www.teechart.com) Oct 7, 2012
timezone-js.d.ts Added timezone-js Dec 30, 2012
twig.d.ts - Added twig.d.ts Dec 3, 2012
underscore.d.ts
underscore.string.d.ts - Added underscore.string.d.ts from https://github.com/alvivi/typescr… Oct 18, 2012
uuid.d.ts added some support for Simple Workflow Jun 18, 2013
watch.d.ts - Updated to 0.8.2 Feb 7, 2013
winston.d.ts Updated for TS 0.9. Added debug() function (maps to log('debug')). Feb 21, 2014
wrench.d.ts

README.md

This project aims to contain several definitions of common node.js libraries for TypeScript language in order to have autocomplete support.

It would be great if the creators of node modules, include definition files directly on their projects. In the meanwhile this project will do the job.

Initial definition files are from the TypeScript project "samples" folder, that can be found here: https://typescript.codeplex.com/SourceControl/BrowseLatest

You can perform pull requests improving definitions or adding new ones. I will add them ASAP.

In order to be able to use it easily, you can create a git submodule for your project adding this in the .gitmodules file:

[submodule "typescript-node-definitions"]
	path = typescript-node-definitions
	url = git://github.com/soywiz/typescript-node-definitions.git

Also you can create a "app.d.ts" file or similar including all the definitions file that are you using in your project:

///<reference path='typescript-node-definitions/node.d.ts'/>
///<reference path='typescript-node-definitions/mongodb.d.ts'/>
///<reference path='typescript-node-definitions/express3.d.ts'/>
///<reference path='typescript-node-definitions/consolidate.d.ts'/>
You can’t perform that action at this time.