# Type Alias Brand<K, T>

Brand: K & { __brand: T }

Branded type for compile-time type safety. Prevents mixing of different ID types at compile time.

#### Type Parameters

- K

  The base type (e.g., string, number)

- T

  The brand identifier (e.g., 'MEPID', 'SessionID')

#### Example

    type UserID = Brand<number, 'UserID'>;
    type ProductID = Brand<number, 'ProductID'>;

    const userId: UserID = 123 as UserID;
    const productId: ProductID = 456 as ProductID;

    // This will cause a compile-time error:
    // userId = productId; // Error: Type 'ProductID' is not assignable to type 'UserID'

- Defined in types/branded.ts:31