docs: update ndarray TypeScript declarations
#9335
Merged
ndarray TypeScript declarations
#9335