mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
* Update `TypeScript Version`s to be at least as high as dependencies' versions * Run through again
19 lines
555 B
TypeScript
19 lines
555 B
TypeScript
// Type definitions for joigoose 2.0
|
|
// Project: https://github.com/yoitsro/joigoose
|
|
// Definitions by: Karoline <https://github.com/boothwhack>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.4
|
|
|
|
import * as Mongoose from "mongoose";
|
|
import * as Joi from "joi";
|
|
|
|
declare namespace Joigoose {
|
|
interface Joigoose {
|
|
convert(schema: Joi.Schema): Mongoose.Schema;
|
|
}
|
|
}
|
|
|
|
declare function Joigoose(mongoose: Mongoose.Mongoose, joiOptions?: Joi.ValidationOptions): Joigoose.Joigoose;
|
|
|
|
export = Joigoose;
|