From d60737ae3e9d1b60f489e6d975377410426df90a Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Sun, 10 Jul 2022 17:01:14 +0200 Subject: [PATCH] fix: fixed `s.array` type inference --- 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); }