TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
parameter in FormData doesn't match MDN reference
https://developer.mozilla.org/en-US/docs/Web/API/FormData/set
The field's value. This can be a string or Blob (including subclasses such as File). If none of these are specified the value is converted to a string.
wouldn't it then be string|Blob|{ toString(): string }?
toString exists everywhere so that's effectively any, which we don't want. I think historically TypeScript guided for explicit toString() in such case.
Ref: https://github.com/microsoft/TypeScript/issues/38347