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