docs/api: Use JSDoc syntax `Array.<string>`

This is clearer from a first sight, especially for those who are aquainted
with C++ and Java.

[ci skip]
[closes #1727]

Signed-off-by: Timothy Gu <timothygu99@gmail.com>