Type Safety
Kind: mechanism
Layer: Contracts Core
Record: architecture:type-safety
Severity: mandatory
Scope: function, module, API, data
Canonical: Ontology
A mechanism that has the compiler reject operations on values of the wrong type before the code runs.
Listed in Architecture principles, after Schema Validation and before Canonical Model.
Requires
Reinforces
Enables
Conflicts with
In tension with
Tensions
Violated by
Refactored by
Severity
Category
Enforced by
- rules/eslint/closure-discriminated-union-must-be-exhaustive.eslint.rule.ts
- rules/eslint/closure-no-double-cast.eslint.rule.ts
- rules/eslint/closure-no-null-managed-instance.eslint.rule.ts
Required by
Reinforced by
Linked from
- A check matches a shape
- Anti-patterns
- Contracts / Interfaces / Compatibility
- Correctness / Determinism / Verification
- SOLID / Object-Oriented Design
- Metaprogramming / Language-Oriented Architecture
- Structural Patterns
- Contracts / Interfaces / Compatibility
- Core Vocabulary
- Schema / Canonical Data / Semantics
- Severity levels
- The resolutions