Skip to content

@statesync/core


@statesync/core / Topic

Type Alias: Topic

ts
type Topic = string;

Defined in: types.ts:28

A stable identifier for a synchronized domain or resource.

Topics are used to scope invalidation events and snapshots so that multiple independent sync loops can coexist without interfering.

v0 runtime rule (validated by the engine on input):

  • MUST be a non-empty string after trim()

Example

ts
const topic: Topic = 'user-profile';

Released under the MIT License.