feat!: update ndarray/base TypeScript declarations
#9640
Merged
ndarray/base TypeScript declarations
#9640