From b2eecefe079c83df1c8cde9a2fcbba027f74bb19 Mon Sep 17 00:00:00 2001 From: Yusuke Sato Date: Tue, 22 Jan 2019 20:00:00 +0900 Subject: [PATCH] modify a test --- types/yup/yup-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/yup/yup-tests.ts b/types/yup/yup-tests.ts index 361cc62084..a90a7df25d 100644 --- a/types/yup/yup-tests.ts +++ b/types/yup/yup-tests.ts @@ -367,7 +367,7 @@ arrSchema.max(5, () => "max"); arrSchema.min(5); arrSchema.min(5, "min"); arrSchema.min(5, () => "min"); -arrSchema.compact(value => value === null); +arrSchema.compact((value, index, array) => value === array[index]); yup.array(); // $ExpectType ArraySchema<{}> yup.array(yup.string()); // $ExpectType ArraySchema