type alias TrellisDeviceConnection

Type Parameters

TApi extends TrellisAPI = TrellisAPI
TState extends Record<string, { kind: "value" | "map"; value: unknown; }> = { }

Properties

readonly
request: DeviceRuntime<TApi, TState>["request"]
readonly
publish: DeviceRuntime<TApi, TState>["publish"]
readonly
event: DeviceRuntime<TApi, TState>["event"]
readonly
operation: DeviceRuntime<TApi, TState>["operation"]
readonly
transfer: { (grant: SendTransferGrant): SendTransferHandle; (grant: ReceiveTransferGrant): ReceiveTransferHandle; }
readonly
state: DeviceRuntime<TApi, TState>["state"]
readonly
name: string
readonly
timeout: number
readonly
stream: string
readonly
api: TApi
readonly
connection: TrellisConnection

Usage

import { type TrellisDeviceConnection } from "trellis/device.ts";