(
ref: Renderer.Ref<any>,
f: (
host: Context.Service.Shape<typeof Html.Host>,
element: globalThis.Element
) => void
)
| 56 | : Html.Host.useSync((host) => Option.some(f(host, element.value)))) |
| 57 | |
| 58 | const found = ( |
| 59 | ref: Renderer.Ref<any>, |
| 60 | f: ( |
| 61 | host: Context.Service.Shape<typeof Html.Host>, |
| 62 | element: globalThis.Element |
| 63 | ) => void |
| 64 | ): Effect.Effect<Found, never, Renderer.Refs | Html.Host> => |
| 65 | Effect.map( |
| 66 | withElement(ref, f), |
| 67 | (done): Found => ({ found: Option.isSome(done) }) |
| 68 | ) |
| 69 | |
| 70 | const FocusOptionsSchema = Schema.Struct({ |
| 71 | preventScroll: Schema.optional(Schema.Boolean) |
no test coverage detected