From d9cac8c0c456c4d4f01fbcc5fe2e17858a7b1643 Mon Sep 17 00:00:00 2001 From: Malige Julien Date: Tue, 30 Oct 2018 18:21:32 +0100 Subject: [PATCH 1/2] Yup compact rejector is optional ``` Yup.array() .compact() ``` https://github.com/jquense/yup#arraycompactrejector-value--boolean-schema --- types/yup/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/yup/index.d.ts b/types/yup/index.d.ts index 3fc9a33fcd..381c297158 100644 --- a/types/yup/index.d.ts +++ b/types/yup/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for yup 0.26 +// Type definitions for yup 0.27 // Project: https://github.com/jquense/yup // Definitions by: Dominik Hardtke , // Vladyslav Tserman , @@ -163,7 +163,7 @@ export interface ArraySchema extends Schema { min(limit: number | Ref, message?: string): ArraySchema; max(limit: number | Ref, message?: string): ArraySchema; ensure(): ArraySchema; - compact(rejector: (value: any) => boolean): ArraySchema; + compact(rejector?: (value: any) => boolean): ArraySchema; } export interface ObjectSchemaConstructor { From 87c5918b3b3ea70fb5ad5ffb84b02b1a323b136f Mon Sep 17 00:00:00 2001 From: Malige Julien Date: Wed, 31 Oct 2018 16:04:24 +0100 Subject: [PATCH 2/2] Revert yup version number --- types/yup/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/yup/index.d.ts b/types/yup/index.d.ts index 381c297158..6e037366ed 100644 --- a/types/yup/index.d.ts +++ b/types/yup/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for yup 0.27 +// Type definitions for yup 0.26 // Project: https://github.com/jquense/yup // Definitions by: Dominik Hardtke , // Vladyslav Tserman ,