From 458b1fc6e093ef813f65d6da487499fd60598b91 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 11 May 2024 02:39:41 +0200 Subject: [PATCH] Drop typed array requirement (more compat) --- src/classes/validationsingle.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/validationsingle.gd b/src/classes/validationsingle.gd index 49a4d0c..b871699 100644 --- a/src/classes/validationsingle.gd +++ b/src/classes/validationsingle.gd @@ -221,7 +221,7 @@ func evaluate() -> bool: # +++ types and classes +++ ## Validates if [param data] matches some [enum Variant.Type].[br] ## Applies to all data types (obviously). -func matches_type(types: Array[Variant.Type]) -> CoreValidationSingle: +func matches_type(types: Array) -> CoreValidationSingle: rules.append({ "type": CoreTypes.ValidationType.MATCHES_TYPE, "types": types }) return self