function
asReadablefunction
Public function exposed as asReadable from @typed/svelte.
asyncStatefunction
Derives status from Typed AsyncData, including optimistic and refreshing states.
fromContextfunction
Carries an existing Effect context into Svelte without acquiring a Layer.
fromReadablefunction
Converts a Svelte readable into an Fx, unsubscribing on interruption.
getRuntimefunction
Optional lookup used by framework adapters during component initialization.
provideCurrentRoutefunction
Extends the structural CurrentRoute for descendants, including nested Typed content. Pass the full mount route, as with CurrentRoute.extend.
provideRuntimefunction
Call during component initialization; the caller retains runtime ownership.
provideServicesfunction
Provides reactive service overrides to this component’s descendants.
runtimeContextfunction
Produces a native Svelte mount/render context map.
toFxfunction
Public function exposed as toFx from @typed/svelte.
useAsyncDatafunction
Observes an existing AsyncData producer without nesting its state model.
useCurrentPathfunction
Follows the canonical pathname plus query used by Typed’s Matcher.
useCurrentRoutefunction
Reads the structural route owner; navigation does not rewrite this tree.
useLocationfunction
Follows committed entries from browser, server memory, or test Navigation.
useNavigationfunction
Native state plus promise commands using the closest Navigation service. Commands use the latest provider after runtime replacement.
useRefSubjectfunction
Observes any RefSubject, including hydrated refs with typed failures. Writes use its serialized transactions; failures also reach
statewhen a native binding ignores the returned Exit. Unmount/runtime replacement cancels writes. The first subscription receives the optional initial value orundefined. Lazy initializers only start after mount;initialcan seed matching SSR and hydration values without executing application effects during rendering.useRoutefunction
Decodes reactive route parameters with Typed’s matcher. By default, leaving the ambient mount yields None. An explicit root confines the wildcard to that root, so paths outside it retain the native RouteNotFound failure.
useRuntimefunction
Reads the closest runtime provider. Its store follows runtime replacements.
useServicefunction
Reads any Effect service using the same runtime, SSR, and failure contract.
useSourcefunction
Observes an Effect, Stream, Fx, or value after mount. A Svelte source store or runtime store can replace the producer; the previous scope closes first. Server rendering reads only
initial, and never starts application effects.viewfunction
A native Typed template that mounts or serializes a Svelte component.
withServicesfunction
Shadows services while keeping the parent’s remaining services and lifetime.
interface
AsyncStateinterface
Native stores describing one async producer and its last available value.
RefSubjectOptionsinterface
Overrides the first server/client snapshot, including for an uninitialized ref.
RefSubjectStoreinterface
A native writable whose transactional writes settle with typed Exit results.
RouteOptionsinterface
Options for matching one route through Typed’s native matcher.
SourceOptionsinterface
Used synchronously during SSR and the client’s first render.
ViewOptionsinterface · Re-export
Svelte mount, hydration and SSR options for one island.
type-alias
Runtimetype-alias
A borrowed execution boundary. ManagedRuntime implements this contract.
RuntimeSourcetype-alias
Public type-alias exposed as RuntimeSource from @typed/svelte.
Sourcetype-alias
Public type-alias exposed as Source from @typed/svelte.
variable
prefetchvariable
Resolves a request-local first snapshot and closes its subscription scope. Pass the result as
initialto both server rendering and client hydration. Empty sources yield NoData; failure causes become AsyncData failures.toReadablevariable
Exposes a non-failing Fx as a Svelte readable store. Its subscription belongs to the current Effect Scope. Svelte stores have no error channel; handle failures in the Fx before converting, or use the AsyncData integration.
toWritablevariable
Exposes a non-failing RefSubject as a writable Svelte store. Writes are synchronous for Svelte subscribers and applied to the RefSubject in the captured Effect context. Both observation and writes belong to the current Scope. After it closes, set/update are inert.