First argument to fetch is optional, but fetch requires at least 1 arg #25509
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: 3.0.0-dev.20180707
Search Terms: fetch lib
Code
Expected behavior:
An error:
Expected 1 arguments, but got 0.
Actual behavior:
No errors are emitted. This is non-compliant with the
fetch
spec, wherein only the second argument is optional.Playground Link: http://www.typescriptlang.org/play/index.html#src=fetch()%3B
The text was updated successfully, but these errors were encountered: