Skip to content

Commit

Permalink
Editorial: remove JSON typedef
Browse files Browse the repository at this point in the history
It doesn’t add enough value. See
w3c/push-api#204 for context.
  • Loading branch information
annevk committed Jul 25, 2016
1 parent a697191 commit 292c629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions Overview.html
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="https://whatwg.org/"><img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-fetch.svg" width="100"></a>
<h1 id="cors">Fetch</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-22-july-2016">Living Standard — Last Updated 22 July 2016</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-25-july-2016">Living Standard — Last Updated 25 July 2016</h2>

<dl>
<dt>Participate:
Expand Down Expand Up @@ -4220,8 +4220,7 @@ <h3 id="headers-class"><span class="secno">6.1 </span>Headers class</h3>

<h3 id="body-mixin"><span class="secno">6.2 </span>Body mixin</h3>

<pre class="idl">typedef any <dfn id="json">JSON</dfn>;
typedef (<a class="external" data-anolis-spec="fileapi" href="https://w3c.github.io/FileAPI/#blob">Blob</a> or BufferSource or <a class="external" data-anolis-spec="xhr" href="https://xhr.spec.whatwg.org/#formdata">FormData</a> or <a class="external" data-anolis-spec="url" href="https://url.spec.whatwg.org/#urlsearchparams">URLSearchParams</a> or USVString) <dfn id="bodyinit">BodyInit</dfn>;
<pre class="idl">typedef (<a class="external" data-anolis-spec="fileapi" href="https://w3c.github.io/FileAPI/#blob">Blob</a> or BufferSource or <a class="external" data-anolis-spec="xhr" href="https://xhr.spec.whatwg.org/#formdata">FormData</a> or <a class="external" data-anolis-spec="url" href="https://url.spec.whatwg.org/#urlsearchparams">URLSearchParams</a> or USVString) <dfn id="bodyinit">BodyInit</dfn>;
typedef (<a href="#bodyinit">BodyInit</a> or <a href="#concept-readablestream" title="concept-ReadableStream">ReadableStream</a>) <dfn id="responsebodyinit">ResponseBodyInit</dfn>;</pre>

<p>To <dfn id="concept-bodyinit-extract" title="concept-BodyInit-extract">extract</dfn> a <a href="#concept-body" title="concept-body">body</a> and a
Expand Down Expand Up @@ -4321,7 +4320,7 @@ <h3 id="body-mixin"><span class="secno">6.2 </span>Body mixin</h3>
[NewObject] Promise&lt;ArrayBuffer&gt; <a href="#dom-body-arraybuffer" title="dom-Body-arrayBuffer">arrayBuffer</a>();
[NewObject] Promise&lt;<a class="external" data-anolis-spec="fileapi" href="https://w3c.github.io/FileAPI/#blob">Blob</a>&gt; <a href="#dom-body-blob" title="dom-Body-blob">blob</a>();
[NewObject] Promise&lt;<a class="external" data-anolis-spec="xhr" href="https://xhr.spec.whatwg.org/#formdata">FormData</a>&gt; <a href="#dom-body-formdata" title="dom-Body-formData">formData</a>();
[NewObject] Promise&lt;<a href="#json">JSON</a>&gt; <a href="#dom-body-json" title="dom-Body-json">json</a>();
[NewObject] Promise&lt;any&gt; <a href="#dom-body-json" title="dom-Body-json">json</a>();
[NewObject] Promise&lt;USVString&gt; <a href="#dom-body-text" title="dom-Body-text">text</a>();
};</pre>

Expand Down
5 changes: 2 additions & 3 deletions Overview.src.html
Expand Up @@ -4148,8 +4148,7 @@ <h3>Headers class</h3>

<h3>Body mixin</h3>

<pre class=idl>typedef any <dfn>JSON</dfn>;
typedef (<span data-anolis-spec=fileapi>Blob</span> or BufferSource or <span data-anolis-spec=xhr>FormData</span> or <span data-anolis-spec=url>URLSearchParams</span> or USVString) <dfn>BodyInit</dfn>;
<pre class=idl>typedef (<span data-anolis-spec=fileapi>Blob</span> or BufferSource or <span data-anolis-spec=xhr>FormData</span> or <span data-anolis-spec=url>URLSearchParams</span> or USVString) <dfn>BodyInit</dfn>;
typedef (<span>BodyInit</span> or <span title=concept-ReadableStream>ReadableStream</span>) <dfn>ResponseBodyInit</dfn>;</pre>

<p>To <dfn title=concept-BodyInit-extract>extract</dfn> a <span title=concept-body>body</span> and a
Expand Down Expand Up @@ -4249,7 +4248,7 @@ <h3>Body mixin</h3>
[NewObject] Promise&lt;ArrayBuffer> <span title=dom-Body-arrayBuffer>arrayBuffer</span>();
[NewObject] Promise&lt;<span data-anolis-spec=fileapi>Blob</span>> <span title=dom-Body-blob>blob</span>();
[NewObject] Promise&lt;<span data-anolis-spec=xhr>FormData</span>> <span title=dom-Body-formData>formData</span>();
[NewObject] Promise&lt;<span>JSON</span>> <span title=dom-Body-json>json</span>();
[NewObject] Promise&lt;any> <span title=dom-Body-json>json</span>();
[NewObject] Promise&lt;USVString> <span title=dom-Body-text>text</span>();
};</pre>

Expand Down

0 comments on commit 292c629

Please sign in to comment.