From ea099f6c3a77aec74a8ae0aebbc0b0a1e9847d62 Mon Sep 17 00:00:00 2001 From: Young Rok Kim Date: Tue, 5 Dec 2017 11:26:23 +0900 Subject: [PATCH] [joi] fix TS compile error with LanguageOptions --- types/joi/index.d.ts | 2 +- types/joi/v10/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/joi/index.d.ts b/types/joi/index.d.ts index 41a8063cac..cc13a9deca 100644 --- a/types/joi/index.d.ts +++ b/types/joi/index.d.ts @@ -16,7 +16,7 @@ export type Types = 'any' | 'alternatives' | 'array' | 'boolean' | 'binary' | 'date' | 'function' | 'lazy' | 'number' | 'object' | 'string'; -export type LanguageOptions = string | false | null | { +export type LanguageOptions = string | boolean | null | { [key: string]: LanguageOptions; }; diff --git a/types/joi/v10/index.d.ts b/types/joi/v10/index.d.ts index 372975ed9e..9270c411aa 100644 --- a/types/joi/v10/index.d.ts +++ b/types/joi/v10/index.d.ts @@ -15,7 +15,7 @@ export type Types = 'any' | 'alternatives' | 'array' | 'boolean' | 'binary' | 'date' | 'function' | 'lazy' | 'number' | 'object' | 'string'; -export type LanguageOptions = string | false | null | { +export type LanguageOptions = string | boolean | null | { [key: string]: LanguageOptions; };