From 305086b93b204c1dd5d751ebfdd7162c74da0fad Mon Sep 17 00:00:00 2001 From: ryuuji3 Date: Fri, 4 Jan 2019 03:52:08 +0000 Subject: [PATCH] ValidationObject reference updated to SchemaMap in order to avoid making breaking changes --- types/hapi/index.d.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index 10741806c3..dec96e0c6c 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -1436,13 +1436,11 @@ export interface RouteOptionsPreObject { failAction?: Lifecycle.FailAction; } -export interface ValidationObject { - [key: string]: AnySchema; -} +export type ValidationObject = SchemaMap; export type RouteOptionsResponseSchema = boolean - | SchemaMap + | ValidationObject | Schema | ((value: object | Buffer | string, options: ValidationOptions) => Promise);