0.1.3 #4
@@ -1,4 +1,4 @@
|
|||||||
import { type Duration, Effect, flow, identity, Option, type ParseResult, Ref, Schema, Stream, SubscriptionRef, type Types } from "effect"
|
import { type Duration, Effect, flow, identity, Option, type ParseResult, Ref, Schema, Stream, SubscriptionRef } from "effect"
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { useCallbackSync } from "./useCallbackSync.js"
|
import { useCallbackSync } from "./useCallbackSync.js"
|
||||||
import { useFork } from "./useFork.js"
|
import { useFork } from "./useFork.js"
|
||||||
@@ -8,8 +8,8 @@ import { useSubscribeRefs } from "./useSubscribeRefs.js"
|
|||||||
|
|
||||||
export namespace useInput {
|
export namespace useInput {
|
||||||
export interface Options<A, R> {
|
export interface Options<A, R> {
|
||||||
|
readonly schema: Schema.Schema<A, string, R>
|
||||||
readonly ref: SubscriptionRef.SubscriptionRef<A>
|
readonly ref: SubscriptionRef.SubscriptionRef<A>
|
||||||
readonly schema: Schema.Schema<Types.NoInfer<A>, string, R>
|
|
||||||
readonly debounce?: Duration.Duration
|
readonly debounce?: Duration.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user