@types/joi
Advanced tools
Comparing version 13.0.7 to 13.0.8
@@ -14,2 +14,3 @@ // Type definitions for joi v13.0.1 | ||
// Rafael Kallis <https://github.com/rafaelkallis> | ||
// Conan Lai <https://github.com/aconanlai> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -156,2 +157,13 @@ // TypeScript Version: 2.4 | ||
export interface WhenSchemaOptions { | ||
/** | ||
* the alternative schema type if the condition is true. Required if otherwise is missing. | ||
*/ | ||
then?: SchemaLike; | ||
/** | ||
* the alternative schema type if the condition is false. Required if then is missing | ||
*/ | ||
otherwise?: SchemaLike; | ||
} | ||
export interface ReferenceOptions { | ||
@@ -352,2 +364,3 @@ separator?: string; | ||
when(ref: Reference, options: WhenOptions): AlternativesSchema; | ||
when(ref: Schema, options: WhenSchemaOptions): AlternativesSchema; | ||
@@ -928,2 +941,3 @@ /** | ||
when(ref: Reference, options: WhenOptions): this; | ||
when(ref: Schema, options: WhenSchemaOptions): this; | ||
} | ||
@@ -1225,2 +1239,3 @@ | ||
export function when(ref: Reference, options: WhenOptions): AlternativesSchema; | ||
export function when(ref: Schema, options: WhenSchemaOptions): AlternativesSchema; | ||
@@ -1227,0 +1242,0 @@ /** |
{ | ||
"name": "@types/joi", | ||
"version": "13.0.7", | ||
"version": "13.0.8", | ||
"description": "TypeScript definitions for joi", | ||
@@ -61,2 +61,7 @@ "license": "MIT", | ||
"githubUsername": "rafaelkallis" | ||
}, | ||
{ | ||
"name": "Conan Lai", | ||
"url": "https://github.com/aconanlai", | ||
"githubUsername": "aconanlai" | ||
} | ||
@@ -71,4 +76,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "16301848b5c748c66c889b1147ea24379d5d9572bd3a6f32b42eb093912219a0", | ||
"typesPublisherContentHash": "714de06092c768e26e091596229173f2336c6b3c9cde1abe882ab6d363bf4cad", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 22 Mar 2018 17:52:41 GMT | ||
* Last updated: Wed, 25 Apr 2018 22:36:12 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, Laurence Dougal Myers <https://github.com/laurence-myers>, Christopher Glantschnig <https://github.com/cglantschnig>, David Broder-Rodgers <https://github.com/DavidBR-SW>, Gael Magnan de Bornier <https://github.com/GaelMagnan>, Rytis Alekna <https://github.com/ralekna>, Pavel Ivanov <https://github.com/schfkt>, Youngrok Kim <https://github.com/rokoroku>, Dan Kraus <https://github.com/dankraus>, Anjun Wang <https://github.com/wanganjun>, Rafael Kallis <https://github.com/rafaelkallis>. | ||
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, Laurence Dougal Myers <https://github.com/laurence-myers>, Christopher Glantschnig <https://github.com/cglantschnig>, David Broder-Rodgers <https://github.com/DavidBR-SW>, Gael Magnan de Bornier <https://github.com/GaelMagnan>, Rytis Alekna <https://github.com/ralekna>, Pavel Ivanov <https://github.com/schfkt>, Youngrok Kim <https://github.com/rokoroku>, Dan Kraus <https://github.com/dankraus>, Anjun Wang <https://github.com/wanganjun>, Rafael Kallis <https://github.com/rafaelkallis>, Conan Lai <https://github.com/aconanlai>. |
Sorry, the diff of this file is not supported yet
47616
1062