The project `lib` declares no base ECMAScript library (loaded: {libs}), so core globals like `Array` are missing and reflected types cannot be trusted.Your tsconfig lib names no base ECMAScript edition, so Array, Object, String and the other core globals are never declared. Then number[] becomes an empty object and its validator would accept any value, so mion stops. Name a base edition in lib (["ES2022"], or ["ES2022", "DOM"] for browser code), or remove lib and let target pick it. A feature entry such as "esnext.disposable" cannot replace a base edition.
{"compilerOptions": {"lib": ["ES2022"]}}