Moved Form
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2025-08-26 04:15:23 +02:00
parent edb4b7ccd8
commit 7c5a118717
2 changed files with 3 additions and 4 deletions

View File

@@ -1,8 +1,6 @@
import { Array, Effect, Option, ParseResult, Pipeable, Schema, Stream, Subscribable, SubscriptionRef } from "effect"
import * as React from "react"
import { SubscriptionSubRef } from "./index.js"
import * as PropertyPath from "./PropertyPath.js"
import * as InternalSubscribable from "./Subscribable.js"
import { PropertyPath, Subscribable as SubscribableInternal, SubscriptionSubRef } from "./types/index.js"
export const TypeId: unique symbol = Symbol.for("effect-fc/Form")
@@ -45,7 +43,7 @@ extends Pipeable.Class() implements Form<A, I, R> {
})
const errorSubscribable = this.errorSubscribable
return InternalSubscribable.make({
return SubscribableInternal.make({
get: Effect.andThen(errorSubscribable.get, filter),
get changes() { return Stream.flatMap(errorSubscribable.changes, filter) },
})

View File

@@ -1,4 +1,5 @@
export * as Component from "./Component.js"
export * as Form from "./Form.js"
export * as Memo from "./Memo.js"
export * as ReactRuntime from "./ReactRuntime.js"
export * as Suspense from "./Suspense.js"