feat: update ndarray/base TypeScript declarations
#9447
Merged
ndarray/base TypeScript declarations
#9447