feat!: update ndarray TypeScript declarations
#9508
Merged
ndarray TypeScript declarations
#9508