function createTrellisApp
createTrellisApp<>(options: CreateTrellisAppOptions<TContract>): TrellisApp<TContract, TClient>

Creates an app-scoped typed Svelte context owner for a Trellis contract and URL.

The optional TClient type parameter is a type-only facade over the connected runtime client. It should be a generated client facade for options.contract.

Type Parameters

Parameters

Return Type

Usage

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