louy / typed-mongoose

Typescript Typings for Mongoose.
2 stars 2 forks source link

Missing signature for Schema.static #9

Open wayne-werner opened 8 years ago

wayne-werner commented 8 years ago

Schema.static also allows a hash of name/function pairs as a single parameter.

louy commented 8 years ago

Could you please be more specific? A link to the docs would be helpful.

wayne-werner commented 8 years ago

http://mongoosejs.com/docs/api.html#schema_Schema-static

Note the last line. Not the best documentation of the alternate signature, but there it is. The dt version does have both signatures, for reference.