InferState
Unpublished development API. This package is under development and is not available as a published release.
The state type a declaration stands for; unknown when there is none.
import type { InferState } from '@threadplane/core';Declaration
export type InferState<TDeclaration> = TDeclaration extends StateWitness<infer TState> ? TState : TDeclaration extends StandardSchemaV1<unknown, infer TState> ? TState : unknown;Type parameters
TDeclaration