w3c / payment-request

Payment Request API
https://www.w3.org/TR/payment-request-1.1/
Other
482 stars 183 forks source link

Editorial: Align with Web IDL specification #922

Closed autokagami closed 3 years ago

autokagami commented 3 years ago

This is an automated pull request to align the spec with the latest Web IDL specification.

Currently the autofix might introduce some awkward code formatting, so please feel free to modify the formatting.

Please file an issue on https://github.com/saschanaz/webidl-updater/issues/new if you think this PR is invalid or should be enhanced.

The following is the validation messages from webidl2.js, which may help understanding this PR:

Validation error at line 11 in payment-request,0:
  Promise<void> abort()
          ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 15 in payment-request,15:
  Promise<void> complete(optional
          ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 17 in payment-request,15:
  Promise<void> retry(optional
          ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 6 in payment-request,18:
  void complete(Promise<
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 4 in payment-request,22:
  void updateWith(Promise<
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

:boom: Error: 500 Internal Server Error :boom:

PR Preview failed to build. (Last tried on Aug 18, 2020, 4:34 PM UTC).

More PR Preview relies on a number of web services to run. There seems to be an issue with the following one: :rotating_light: [Spec Generator](https://www.w3.org/2015/labs/) - Spec Generator is the web service used to build specs that rely on ReSpec. :link: [Related URL](https://labs.w3.org/spec-generator/?type=respec&url=https%3A%2F%2Frawcdn.githack.com%2Fw3c%2Fpayment-request%2Ff5da228179e28880c6ce8a7da6b37ab7a858b3ef%2Findex.html%3FisPreview%3Dtrue) ``` 😭 Sorry, there was an error generating the HTML. Please report this issue! Specification: https://rawcdn.githack.com/w3c/payment-request/f5da228179e28880c6ce8a7da6b37ab7a858b3ef/index.html?isPreview=true&publishDate=2020-08-18 ReSpec version: 25.13.0 File a bug: https://github.com/w3c/respec/ Error: Error: Evaluation failed: Timeout: document.respecIsReady didn't resolve in 0ms.  at ExecutionContext._evaluateInternal (/u/spec-generator/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)  at runMicrotasks ()  at processTicksAndRejections (internal/process/task_queues.js:97:5)  at async ExecutionContext.evaluate (/u/spec-generator/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)  at async generateHTML (/u/spec-generator/node_modules/respec/tools/respecDocWriter.js:128:12)  at async fetchAndWrite (/u/spec-generator/node_modules/respec/tools/respecDocWriter.js:95:18)  at async Object.generate [as respec] (/u/spec-generator/generators/respec.js:14:20)  at async generate (/u/spec-generator/server.js:90:29)  ``` _If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please [file an issue](https://github.com/tobie/pr-preview/issues/new?title=Error%20not%20surfaced%20properly&body=See%20w3c/payment-request%23922.)._