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

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

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