MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / invalidState

Function invalidState

packages/core/src/app/stateMachine.ts:30–32  ·  view source on GitHub ↗
(detail: string)

Source from the content-addressed store, hash-verified

28export type AppRuntimeState = "Created" | "Running" | "Stopped" | "Disposed" | "Faulted";
29
30function invalidState(detail: string): never {
31 throw new ZrUiError("ZRUI_INVALID_STATE", detail);
32}
33
34/**
35 * Enforces valid state transitions for app lifecycle.

Callers 5

assertOneOfMethod · 0.85
toRunningMethod · 0.85
toStoppedMethod · 0.85
toFaultedMethod · 0.85
disposeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected