//! Error type registration for TypeScript contract generation.
//!
//! Error enums annotated with `#[derive(OrpcError)]` submit `ErrorRegistration`
//! entries via `inventory`. At contract generation time, these entries are matched
//! with handlers that return `Result<T, E>` to produce `.errors({...})` in the
//! TypeScript contract.
/// Error variant definition for contract generation.
///
/// Each variant becomes an entry in the `.errors({...})` object.
/// - Unit variants: `{ VARIANT_NAME: {} }`
/// - Data variants: `{ VARIANT_NAME: { data: <zod_schema> } }`
/// Registration entry for an error enum type.
///
/// Submitted via `inventory::submit!` by the `#[derive(OrpcError)]` macro.
/// One registration per error type.
collect!;