Performs type-safe division with compile-time zero-check.
This function leverages TypeScript's type system to prevent division by zero at compile time. The divisor must be typed as NonZeroNumber or a non-zero numeric literal.
The dividend
The divisor (must be non-zero, enforced by types)
The quotient of a / b
Performs type-safe division with compile-time zero-check.
This function leverages TypeScript's type system to prevent division by zero at compile time. The divisor must be typed as NonZeroNumber or a non-zero numeric literal.