mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 12:46:36 +08:00
18 lines
528 B
TypeScript
18 lines
528 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
|
|
|
|
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;
|