UNPKG

374 BTypeScriptView Raw
1import * as JoiLib from 'joi';
2import { ExtendedNumberSchema } from './number.extensions';
3import { ExtendedStringSchema } from './string.extensions';
4export interface ExtendedJoi extends JoiLib.Root {
5 string(): ExtendedStringSchema;
6 number(): ExtendedNumberSchema;
7}
8/**
9 * This is the only right place to import Joi from
10 */
11export declare const Joi: ExtendedJoi;