0.1.4 #5

Merged
Thilawyn merged 67 commits from next into master 2025-10-02 18:18:23 +02:00
Showing only changes of commit 3eaa250c28 - Show all commits

View File

@@ -55,24 +55,6 @@ extends Pipeable.Class() implements Form<A, I, R, SA, SE, SR> {
}), }),
) )
} }
makeFieldIssuesSubscribable<const P extends PropertyPath.Paths<A>>(path: P) {
const errorRef = this.errorRef
return pipe(
Option.match({
onSome: (v: ParseResult.ParseError) => Effect.andThen(
ParseResult.ArrayFormatter.formatError(v),
Array.filter(issue => PropertyPath.equivalence(issue.path, path)),
),
onNone: () => Effect.succeed([]),
}),
filter => SubscribableInternal.make({
get: Effect.flatMap(errorRef.get, filter),
get changes() { return Stream.flatMap(errorRef.changes, filter) },
}),
)
}
} }