Import
import { Dialog } from "@typed/ui";Access Dialog.requestClose through the imported Dialog export. Its declaration below describes the member.
This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.
Signatures
export declare function requestClose(state: RefSubject.HydratedRefSubject<State, Schema.SchemaError>, returnValue?: string): Effect.Effect<void>;Why
The browser’s requestClose() is cancelable. The fallback dispatches a real
cancelable cancel event and calls close() only when it is accepted, so
user handlers retain the same veto point.
Ownership and lifetime
The Effect consults the dialog currently registered for the hydrated state;
registration is removed when Content’s Scope closes. No dialog is retained
after that finalizer.
Examples
import { Effect } from "effect"
import * as Dialog from "@typed/ui/Dialog"
const program = Effect.gen(function* () {
const state = yield* Dialog.makeState({ open: true })
yield* Dialog.requestClose(state)
})Other public imports
These import paths expose the same declaration. Each page retains its own public name and signature.