@types/joi
Advanced tools
Comparing version 13.0.8 to 13.3.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for joi v13.0.1 | ||
// Type definitions for joi v13.3.0 | ||
// Project: https://github.com/hapijs/joi | ||
@@ -15,2 +15,3 @@ // Definitions by: Bart van der Schoor <https://github.com/Bartvds> | ||
// Conan Lai <https://github.com/aconanlai> | ||
// Peter Thorson <https://github.com/zaphoyd> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -110,2 +111,9 @@ // TypeScript Version: 2.4 | ||
export interface HexOptions { | ||
/** | ||
* hex decoded representation must be byte aligned | ||
*/ | ||
byteAligned: boolean; | ||
} | ||
export interface IpOptions { | ||
@@ -517,2 +525,7 @@ /** | ||
negative(): this; | ||
/** | ||
* Requires the number to be a TCP port, so between 0 and 65535. | ||
*/ | ||
port(): this; | ||
} | ||
@@ -630,3 +643,3 @@ | ||
*/ | ||
hex(): this; | ||
hex(options?: HexOptions): this; | ||
@@ -721,3 +734,3 @@ /** | ||
/** | ||
* Sets the allowed object keys. | ||
* Sets or extends the allowed object keys. | ||
*/ | ||
@@ -727,2 +740,7 @@ keys(schema?: SchemaMap): this; | ||
/** | ||
* Appends the allowed object keys. If schema is null, undefined, or {}, no changes will be applied. | ||
*/ | ||
append(schema?: SchemaMap): this; | ||
/** | ||
* Specifies the minimum number of keys in the object. | ||
@@ -975,3 +993,3 @@ */ | ||
setup?(this: ExtensionBoundSchema, params: P): Schema | void; | ||
validate?<R = any>(this: ExtensionBoundSchema, params: P, value: any, state: State, options: ValidationOptions): Err | R; | ||
validate?(this: ExtensionBoundSchema, params: P, value: any, state: State, options: ValidationOptions): any; | ||
description?: string | ((params: P) => string); | ||
@@ -984,4 +1002,4 @@ } | ||
language?: LanguageOptions; | ||
coerce?<R = any>(this: ExtensionBoundSchema, value: any, state: State, options: ValidationOptions): Err | R; | ||
pre?<R = any>(this: ExtensionBoundSchema, value: any, state: State, options: ValidationOptions): Err | R; | ||
coerce?(this: ExtensionBoundSchema, value: any, state: State, options: ValidationOptions): any; | ||
pre?(this: ExtensionBoundSchema, value: any, state: State, options: ValidationOptions): any; | ||
describe?(this: Schema, description: Description): Description; | ||
@@ -1112,6 +1130,9 @@ rules?: Rules[]; | ||
/** | ||
* Get a sub-schema of an existing schema based on a path. Path separator is a dot (.). | ||
* Get a sub-schema of an existing schema based on a `path` that can be either a string or an array | ||
* of strings For string values path separator is a dot (`.`) | ||
*/ | ||
export function reach(schema: ObjectSchema, path: string): Schema; | ||
export function reach<T extends Schema>(schema: ObjectSchema, path: string): T; | ||
export function reach(schema: ObjectSchema, path: string[]): Schema; | ||
export function reach<T extends Schema>(schema: ObjectSchema, path: string[]): T; | ||
@@ -1118,0 +1139,0 @@ /** |
{ | ||
"name": "@types/joi", | ||
"version": "13.0.8", | ||
"version": "13.3.0", | ||
"description": "TypeScript definitions for joi", | ||
@@ -66,2 +66,7 @@ "license": "MIT", | ||
"githubUsername": "aconanlai" | ||
}, | ||
{ | ||
"name": "Peter Thorson", | ||
"url": "https://github.com/zaphoyd", | ||
"githubUsername": "zaphoyd" | ||
} | ||
@@ -72,8 +77,8 @@ ], | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "714de06092c768e26e091596229173f2336c6b3c9cde1abe882ab6d363bf4cad", | ||
"typesPublisherContentHash": "acacd4363b65810e892470f25d849e76bad9db895c60065825ca7c7db88f47a7", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/joi | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/joi | ||
Additional Details | ||
* Last updated: Wed, 25 Apr 2018 22:36:12 GMT | ||
* Last updated: Sat, 16 Jun 2018 01:35:09 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>, Conan Lai <https://github.com/aconanlai>. | ||
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>, Peter Thorson <https://github.com/zaphoyd>. |
Sorry, the diff of this file is not supported yet
1080
47201