StateDeclarationInput
interfaceFields accepted by state. `sensitivity` defaults to `private`. `stability` stays absent unless you set it, and readers resolve the effective value through stateStability.
Import
import { StateDeclarationInput } from '@modular/sdk';Members8
- [runtimeContractCompilerValue]optional
GeneratedRuntimeContract- [runtimeContractInput]optional
TValue- id
stringIdentifier, unique within the mod.
- initial
TValueValue used the first time this state is registered.
- scope
'profile' | 'workspace'Whether the value persists per workspace or per profile.
- sensitivityoptional
'workspace' | 'private' | 'public' | 'secret'How freely the host may share the value. Defaults to `private`.
- stabilityoptional
'internal' | 'experimental' | 'stable'Compatibility promise you are making to readers of this state.
- titleoptional
stringHuman-readable label shown where the host lists mod state.
Notes
- category
- State