docs: update ndarray/base TypeScript declarations
#10021
Merged
ndarray/base TypeScript declarations
#10021