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