From fcd6b2ab8bf1be5482c43aa1f510b97ac4ec3840 Mon Sep 17 00:00:00 2001 From: Pierre Rousseau Date: Tue, 26 Mar 2024 13:01:33 +0100 Subject: [PATCH] [IMP] types: correctly support Set type for props-validation Previously, having a Set as a type in the static props description of a component would would lead to a type error. This commit adds Set to the list of supported types in the Schema --- src/runtime/validation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/validation.ts b/src/runtime/validation.ts index 36ed9f3e..693ef5cf 100644 --- a/src/runtime/validation.ts +++ b/src/runtime/validation.ts @@ -9,6 +9,7 @@ type BaseType = | typeof Object | typeof Array | typeof Function + | typeof Set | true | "*";