From b5c7a834d63d8337f476e184bc566c65e0b7e202 Mon Sep 17 00:00:00 2001 From: foolishflyfox Date: Fri, 21 Nov 2025 12:45:50 +0800 Subject: [PATCH] Fix ValidatorFunc Type Mistake --- src/Factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factory.ts b/src/Factory.ts index 334b688fa..33007af73 100644 --- a/src/Factory.ts +++ b/src/Factory.ts @@ -41,7 +41,7 @@ type Value> = ExtractGetSet< /** * A function that validates a value. */ -type ValidatorFunc = (val: ExtractGetSet, attr: string) => T; +type ValidatorFunc = (val: T, attr: string) => T; /** * Extracts the "components" (keys) of a GetSet value. The value must be an object.