# 04 · recursive-flatten **演示**:`Flatten` 递归剥开任意层数组;递归必须有终止分支,否则会触发 `TS2589`。 **运行**:无运行时输出;Console 为空。 **类型检查**:`node node_modules/typescript/bin/tsc -p examples/09-conditional-types-infer/04-recursive-flatten/tsconfig.types.json` **注意**:递归深度有上限(约 100 层实例化),嵌套极深时需要改用迭代写法或拆分。