From d9cac8c0c456c4d4f01fbcc5fe2e17858a7b1643 Mon Sep 17 00:00:00 2001 From: Malige Julien Date: Tue, 30 Oct 2018 18:21:32 +0100 Subject: [PATCH] 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 {