Skip to content

Type Alias: QueryType

ts
type QueryType = string | symbol;

Defined in: src/wirestate-core/types/queries.ts:17

Represents token used to dispatch and handle queries.

Remarks

Queries use a request-response pattern. Using symbols is recommended for private or internal queries to avoid naming collisions.

Example

typescript
const GET_USER_QUERY: QueryType = Symbol("GET_USER");