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