Patch Changes
-
57f0acb: Fix two
TS2532: Object is possibly 'undefined'errors that leaked to consumers via the source-only distribution. UndernoUncheckedIndexedAccess, indexed access returnsT | undefined, and neither a.length === 1check nor a boundedforloop narrows the element type for the compiler:useOptionsLookup.ts—filtered[0].toLowerCase()guarded only byfiltered.length === 1; now binds the sole element to a local that the!== undefinedcheck narrows.EntityManager.cache.ts—entries[i][0]inside the eviction loop; now iteratesentries.slice(0, toRemove)and destructures the key, dropping the unchecked index entirely.
No runtime behavior change —
vue-tsc --noEmitagainst the package source is now clean. Reported in qdadm #1019.