'Expected 0 arguments but got 1. ts(2554) - abortController.abort(reason)

According to MDN abortController.abort() accepts one optional argument. TypeScript thinks this is wrong. Which side is right?

(Isn't there a tag for MDN Web Docs?)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source