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