Provides Function type support for Mongoose