mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Update mongodb-tests.ts
mongodb-tests.ts
This commit is contained in:
@@ -85,7 +85,7 @@ let options = {
|
||||
let cursor: mongodb.Cursor<bag> = collection.find<bag>({color: 'black'})
|
||||
cursor.toArray(function (err,r) { r[0].cost} );
|
||||
cursor.forEach(function (bag ) { bag.color }, () => {});
|
||||
collection.findOne({ color: 'white' }).then(() => { })
|
||||
collection.findOne({ color: 'white' }).then(b => { let _b:bag = b; })
|
||||
collection.findOne<bag>({ color: 'white' }).then(b => { b.cost; })
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user