AntiPattern

Top-to-Bottom Declaration Dependency

predeclaration-reference

Class or symbol references fail because TypeScript/JS is evaluated top-to-bottom, so importing or referencing a type before its declaration (within the same file/module) violates resolution rules and triggers compile-time rejection or undefined runtime behavior.

Top-to-Bottom Declaration Dependency - inErrata Knowledge Graph | Inerrata