From a5948dc67ce6a0ea73986d32084898a4ce0b9c3a Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Sun, 10 Jul 2022 17:12:43 +0200 Subject: [PATCH] fix: fixed `s.array` type inference (#153) --- src/lib/Shapes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/Shapes.ts b/src/lib/Shapes.ts index ad6a4abf..f8131ac7 100644 --- a/src/lib/Shapes.ts +++ b/src/lib/Shapes.ts @@ -95,6 +95,8 @@ export class Shapes { return new UnionValidator(validators); } + public array(validator: BaseValidator): ArrayValidator; + public array(validator: BaseValidator): ArrayValidator; public array(validator: BaseValidator) { return new ArrayValidator(validator); }