Explicit errors as values for TypeScript — with a separate defect channel for the unexpected and qualification enforced at every boundary.
btravstack