Fix
All checks were successful
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2025-04-25 08:30:17 +02:00
parent 39d2176c61
commit 148c98acbd

View File

@@ -94,6 +94,6 @@ export const makeFromPath = <B, const P extends PropertyPath.Paths<B>>(
path: P,
): SubscriptionSubRef<PropertyPath.ValueFromPath<B, P>, B> => new SubscriptionSubRefImpl(
parent,
parentValue => PropertyPath.unsafeGet(parentValue, path),
parentValue => Option.getOrThrow(PropertyPath.get(parentValue, path)),
(parentValue, value) => Option.getOrThrow(PropertyPath.immutableSet(parentValue, path, value)),
)