Comparing version 5.2.0 to 5.2.1
@@ -16,1 +16,8 @@ import * as Joi from "joi"; | ||
export declare function useJoi(abolish: TypeOfAbolishOrInstance, joi?: Joi.Root): void; | ||
declare module "../src/validator" { | ||
module AvailableValidators { | ||
interface Options { | ||
$joi: Joi.Schema | ((joi: Joi.Root) => Joi.Schema); | ||
} | ||
} | ||
} |
@@ -9,2 +9,10 @@ import * as Yup from "yup"; | ||
declare type YupHelper<T> = (y: typeof Yup) => T; | ||
declare module "../src/validator" { | ||
module AvailableValidators { | ||
interface Options { | ||
$yup: Yup.BaseSchema | YupSchemaOption<any>; | ||
$yupAsync: Yup.BaseSchema | YupSchemaOption<any>; | ||
} | ||
} | ||
} | ||
/** | ||
@@ -11,0 +19,0 @@ * $yup Schema Helper |
{ | ||
"name": "abolish", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "A javascript object validator.", | ||
@@ -23,3 +23,3 @@ "main": "index.js", | ||
"watch": "npx tsc --watch", | ||
"play": "npx ts-node-dev --respawn play.ts", | ||
"play": "npx ts-node-dev --respawn tests/play.ts", | ||
"test-browser": "npx vite --host", | ||
@@ -26,0 +26,0 @@ "test": "npm run build && node JapaFile.js", |
/** | ||
* This is not an automatically generated file. | ||
*/ | ||
import { $errorRule, $errorsRule, AbolishInlineValidator, AbolishRule } from "./types"; | ||
import type { $errorRule, $errorsRule, AbolishInlineValidator, AbolishRule } from "./types"; | ||
export declare module AvailableValidators { | ||
export interface Options { | ||
interface Options { | ||
$name: string; | ||
@@ -13,3 +12,2 @@ $error: $errorRule; | ||
$skip: boolean | ((value: any) => boolean); | ||
default: any; | ||
@@ -28,3 +26,2 @@ required: boolean; | ||
} | ||
/** | ||
@@ -34,2 +31,6 @@ * AV - Abolish Validators | ||
*/ | ||
export type AV = Partial<AvailableValidators.Options>; | ||
export declare type AV = Partial<AvailableValidators.Options>; | ||
/** | ||
* Import all additional validators | ||
*/ | ||
import "../validators/validators"; |
3230
169318
90