StateWitness
Unpublished development API. This package is under development and is not available as a published release.
A state type declared without a schema. It holds no value: the session trusts that the backend sends this shape and checks nothing at runtime.
import type { StateWitness } from '@threadplane/core';Declaration
export interface StateWitness<TState> {
readonly [witness]: 'type';
readonly '~type'?: TState;
}Type parameters
TState
Members
"~threadplane.state"
readonly [witness]: 'type';"~type"
Never present. It only carries the declared type.
readonly '~type'?: TState;