Skip to main content

StateDeclarationInput

interface

Fields accepted by state.

interface StateDeclarationInput<TValue>

Import

import { StateDeclarationInput } from '@modular/sdk';

Members7

__@runtimeContractInput@15821optional
TValue
id
string

Identifier, unique within the mod.

initial
TValue

Value used the first time this state is registered.

scope
ModStateScope

Whether the value persists per workspace or per profile.

sensitivity
DataSensitivity

How freely the host may share the value.

stability
DataStability

Compatibility promise you are making to readers of this state.

titleoptional
string

Human-readable label shown where the host lists mod state.