Svelte-reactive adapter around a framework-neutral Trellis connection.
-
close(): Promise<void>
Closes the underlying Trellis runtime connection.
-
status(): TrellisConnectionStatus
Latest connection status, reactive when read by Svelte effects or markup.
Creates an app-scoped typed Svelte context owner for a Trellis contract and URL.
Resolves a Trellis app URL config to the string shape required by the client.
Public app-scoped typed Svelte context owner for a Trellis browser app.
-
contract: TContract
Contract used by this app context and by
TrellisProviderconnections. -
getConnection(): SvelteTrellisConnection
Returns a Svelte-reactive adapter for the real Trellis connection.
-
getTrellis(): TClient
Returns the contract-typed connected Trellis client from Svelte context synchronously.
-
trellisUrl: TrellisAppUrlResolver
Trellis URL configuration used by
TrellisProviderconnections.
Options used to create a Trellis Svelte app owner.
-
contract: TContract
Contract used by this app context and by
TrellisProviderconnections. -
trellisUrl: TrellisAppUrlResolver
Trellis URL, or a resolver for runtime-selected Trellis URLs.
Minimal branded app owner surface accepted by the Trellis Svelte provider.
URL value accepted by a Trellis Svelte app owner.
Trellis URL configuration for a Svelte app owner.
Real connected Trellis client type exposed by a Svelte app context.
Minimal client surface required for Trellis Svelte context clients.
Minimal contract shape required to create a typed Trellis Svelte app context.
Props accepted by the Svelte Trellis provider component.
Usage
import * as mod from "trellis-svelte/src/index.ts";