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