Types shared by the local-first runtime and its runtime scope.
These live here, not in local-first-runtime.ts, because runtime-scope.ts
needs them too. Importing them from the runtime would make the two modules
import each other, and TypeScript resolves that cycle by widening the types
to unknown — which type-checks at the definition and fails at every use.
Types shared by the local-first runtime and its runtime scope.
These live here, not in local-first-runtime.ts, because runtime-scope.ts needs them too. Importing them from the runtime would make the two modules import each other, and TypeScript resolves that cycle by widening the types to
unknown— which type-checks at the definition and fails at every use.