interface TrellisApp

Public app-scoped typed Svelte context owner for a Trellis browser app.

TClient is a type-only facade over the runtime client that TrellisProvider installs. Use it with generated client facade types for the same contract.

Type Parameters

Properties

Contract used by this app context and by TrellisProvider connections.

Trellis URL configuration used by TrellisProvider connections.

Methods

Returns the contract-typed connected Trellis client from Svelte context synchronously.

Returns a Svelte-reactive adapter for the real Trellis connection.

Usage

import { type TrellisApp } from "trellis-svelte/src/index.ts";