From bc4736e12c8bcc09b13406f38b9947bc2529e494 Mon Sep 17 00:00:00 2001 From: Luke Abby Date: Fri, 3 Jan 2025 02:07:04 -0800 Subject: [PATCH] Fix __UnsetDocument case in FromUuidValidate --- src/foundry/client/core/utils.d.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/foundry/client/core/utils.d.mts b/src/foundry/client/core/utils.d.mts index d57e49e5c..21bbd04ad 100644 --- a/src/foundry/client/core/utils.d.mts +++ b/src/foundry/client/core/utils.d.mts @@ -19,7 +19,7 @@ type FromUuid = Uuid extends `${string}.${string}.${infer R type FromUuidValidate< ConcreteDocument extends Document.Any, Uuid extends string, -> = ConcreteDocument extends __UnsetDocument +> = __UnsetDocument extends ConcreteDocument ? MustBeValidUuid // Only necessary because `Document.Any` is of type `any` not `Document.Type`. : MustBeValidUuid;