Skip to content

Profectus / game/persistence / State

Type Alias: State ​

State: string | number | boolean | DecimalSource | null | undefined | {} | {}

This is a union of things that should be safely stringifiable without needing special processes or knowing what to load them in as.

  • Decimals aren't allowed because we'd need to know to parse them back.
  • DecimalSources are allowed because the string is a valid value for them

Defined in ​

profectus/src/game/persistence.ts:59