Skip to content

Commit

Permalink
Fix __UnsetDocument case in FromUuidValidate
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeAbby committed Jan 3, 2025
1 parent a4e4c50 commit bc4736e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/foundry/client/core/utils.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type FromUuid<Uuid extends string> = Uuid extends `${string}.${string}.${infer R
type FromUuidValidate<
ConcreteDocument extends Document.Any,
Uuid extends string,
> = ConcreteDocument extends __UnsetDocument
> = __UnsetDocument extends ConcreteDocument
? MustBeValidUuid<Uuid, Document.Type> // Only necessary because `Document.Any` is of type `any` not `Document.Type`.
: MustBeValidUuid<Uuid, ConcreteDocument["documentName"]>;

Expand Down

0 comments on commit bc4736e

Please sign in to comment.