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