docs/api: Use JSDoc syntax `string[]`

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

[ci skip]

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