diff --git a/packages/effect-fc/src/Form.ts b/packages/effect-fc/src/Form.ts index e0ab185..580477b 100644 --- a/packages/effect-fc/src/Form.ts +++ b/packages/effect-fc/src/Form.ts @@ -11,19 +11,19 @@ export type TypeId = typeof TypeId export interface Form extends Pipeable.Pipeable { readonly schema: Schema.Schema - readonly latestValueSubscribable: Subscribable.Subscribable> + readonly latestValueSubscribable: Subscribable.Subscribable - useFieldLatestValueSubscribable

>>( + useFieldLatestValueSubscribable

>( path: P - ): Subscribable.Subscribable, P>, NoSuchElementException> + ): Subscribable.Subscribable, NoSuchElementException> useFieldIssuesSubscribable( - path: PropertyPath.Paths> + path: PropertyPath.Paths ): Subscribable.Subscribable - useInput

>>( + useInput

>( path: P ): Effect.Effect< - Form.useInput.Result, P>>, + Form.useInput.Result>, ParseResult.ParseError | NoSuchElementException, R > @@ -43,18 +43,18 @@ export namespace Form { class FormImpl extends Pipeable.Class() implements Form { readonly [TypeId]: TypeId = TypeId - readonly latestValueSubscribable: Subscribable.Subscribable> + readonly latestValueSubscribable: Subscribable.Subscribable constructor( readonly schema: Schema.Schema, - readonly latestValueRef: SubscriptionRef.SubscriptionRef>, + readonly latestValueRef: SubscriptionRef.SubscriptionRef, readonly errorRef: SubscriptionRef.SubscriptionRef>, ) { super() this.latestValueSubscribable = latestValueRef } - useFieldLatestValueSubscribable

>>( + useFieldLatestValueSubscribable

>( path: P ) { return React.useMemo(() => { @@ -67,7 +67,7 @@ extends Pipeable.Class() implements Form { } useFieldIssuesSubscribable( - path: PropertyPath.Paths> + path: PropertyPath.Paths ) { return React.useMemo(() => { const filter = Option.match({