Inferring types from usage

Membrane programs have a persistent state object that survives across deploys. You import it and use it like a regular JavaScript object: import { state } from " membrane "; state . count ??= 0 ; export function increment () { return ++ state . count ; } The entire JS heap is durable, but state is the conventional way to pass data between code versions. The question is: what type is state ? We…