interface CqrsRequest
Since 0.1.0

A CQRS request identified by a string type and carrying typed data.

Commands and queries are marker subtypes (semantic separation only — same shape).

Type Parameters

TData = unknown

The payload type

Properties

readonly
type: string

Request type name (e.g. "CreateUser"). Used for routing.

readonly
data: TData

The request payload.

Usage

import { type CqrsRequest } from "common/src/index.ts";