Type Alias: QueryType
ts
type QueryType = string | symbol | number;Defined in: src/wirestate-core/plugin/queries/queries.ts:20
Identifies one read-oriented message handled by a query handler.
Remarks
Queries represent request/response reads such as current user, labels, cached state, or computed view data. Prefer strings for public query contracts and symbols for private queries that should not collide with other packages.
Example
typescript
const CURRENT_USER: QueryType = "USER/CURRENT";
const LOCAL_SUMMARY: QueryType = Symbol("LOCAL_SUMMARY");