DefinitelyTyped/types/mongodb
Adam 6ea82ff17c
feat: export Condition
Conditions can be used at the top level:

```typescript
db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )
```

Seems like the types in `@types/mongoose` marked the conditions as `any`, but exposing this `Condition` would provide for better typing in there as well.

```typescript
    findOne(conditions?: any,
      callback?: (err: any, res: T | null) => void): DocumentQuery<T | null, T> & QueryHelpers;
    findOne(conditions: any, projection: any,
      callback?: (err: any, res: T | null) => void): DocumentQuery<T | null, T> & QueryHelpers;
    findOne(conditions: any, projection: any, options: any,
      callback?: (err: any, res: T | null) => void): DocumentQuery<T | null, T> & QueryHelpers;
```
2018-12-23 01:43:27 -05:00
..
v1
v2
index.d.ts feat: export Condition 2018-12-23 01:43:27 -05:00
mongodb-tests.ts
tsconfig.json
tslint.json