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