You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve all TypeScript strict-mode errors across source and test files
Source fixes:
- src/core/reindex.ts: add undefined guards for noUncheckedIndexedAccess
- src/core/timestamp.ts: guard regex match group against undefined
- src/io/json_normalize.ts: use Dtype.float64/int64/bool/object statics,
fix Series/DataFrame constructors, convert Record to Map
- src/stats/combine_first.ts: replace hasColumn() with has()
- src/stats/crosstab.ts: fix bucket array init and margin arithmetic types
- src/stats/factorize.ts: use null instead of undefined for Series name
- src/stats/isin.ts: use string|symbol index type for Symbol.iterator check
- src/stats/memory_usage.ts: use df.items() instead of for-of on DataFrame
- src/stats/clip_with_bounds.ts: add DataFrameBoundArg type for DataFrame bounds
- src/groupby/groupby.ts: implement aggNamed() method on DataFrameGroupBy
Test fixes:
- Cast toArray() results to (number|null)[] for null-containing assertions
- Replace Index .length with .size
- Add non-null assertions for indexed access
- Use DataFrame.fromColumns or proper Map constructor
- Fix type annotations for property-based tests
- Use identity comparison pattern for toBe with union types
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
0 commit comments