Skip to content

Commit

Permalink
Added TypeScript Version: 2.3 to express-brute-mongo; removed easy-js…
Browse files Browse the repository at this point in the history
…end test dependency on mongoose
  • Loading branch information
CaselIT committed Jun 7, 2017
1 parent f69c697 commit a476fb3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions types/easy-jsend/easy-jsend-tests.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@


import mongoose = require('mongoose');
// import mongoose = require('mongoose');
import express = require('express');
import jSend = require('easy-jsend');

var schema = new mongoose.Schema({
name: {type: String}
});
// var schema = new mongoose.Schema({
// name: {type: String}
// });

var Model = mongoose.model('model', schema);
// var Model = mongoose.model('model', schema);
var Model = {};

jSend.init({partial: true});

Expand Down
6 changes: 3 additions & 3 deletions types/express-brute-mongo/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Project: https://github.com/auth0/express-brute-mongo
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3



import { Collection } from "mongodb";

/**
* @summary MongoDB store adapter.
Expand All @@ -17,5 +17,5 @@ export = class MongoStore {
* @param {Function} getCollection The collection.
* @param {Object} options The otpions.
*/
constructor(getCollection: (collection: any) => void, options?: Object);
constructor(getCollection: (collection: Collection) => void, options?: Object);
}

0 comments on commit a476fb3

Please sign in to comment.