Import
import { ElementRef } from "@typed/ui/Dom/index";This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.
Signatures
export type ElementRef<Element extends globalThis.Element> = {
readonly ref?: ElementRefCallback<Element> | RefSubject.HydrationRef<any, any>;
};Why
It supports both ordinary element callbacks and a RefSubject hydration
owner at the same host boundary.
Ownership and lifetime
A mounted element may have only one hydration owner. Composed ordinary refs share the rendering Scope and must not outlive the element.
Property: ref
The callback or sole hydration owner for the mounted element.
Other public imports
These import paths expose the same declaration. Each page retains its own public name and signature.