Adding mongoose-mock.d.ts

This commit is contained in:
Jason Tremper 2014-12-17 15:35:47 -05:00
parent 6847664647
commit 49a4ccc0ba
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,7 @@
/// <reference path="../mongoose/mongoose.d.ts" />
/// <reference path="mongoose-mock.d.ts" />
import mongooseMock = require('mongoose-mock');
// returns a mongoose object
mongooseMock.connect('url');

13
mongoose-mock/mongoose-mock.d.ts vendored Normal file
View File

@ -0,0 +1,13 @@
// Type definitions for multer
// Project: https://github.com/expressjs/multer
// Definitions by: jt000 <https://github.com/jt000>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../mongoose/mongoose.d.ts" />
declare module "mongoose-mock" {
import mongoose = require('mongoose');
var mock: mongoose.Mongoose;
export = mock;
}