Norwegian Pony Master

    @types/joigoose
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.7 • Public • Published

    Installation

    npm install --save @types/joigoose

    Summary

    This package contains type definitions for joigoose (https://github.com/yoitsro/joigoose).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/joigoose.

    index.d.ts

    // 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
    // Minimum TypeScript Version: 4.1
    
    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;

    Additional Details

    Credits

    These definitions were written by Karoline.

    Keywords

    none

    Install

    npm i @types/joigoose

    DownloadsWeekly Downloads

    120

    Version

    2.0.7

    License

    MIT

    Unpacked Size

    3.84 kB

    Total Files

    4

    Last publish

    Collaborators

    • types