interface
interface copied to clipboard
Promise
Promise.all is unnecessary here because only a single promise is being passed. It's not a critical issue, but it's better to avoid this pattern as it can be misleading — it may suggest that multiple promises are involved.