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