- From: Domenic Denicola <notifications@github.com>
- Date: Mon, 15 May 2017 16:32:47 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 15 May 2017 23:33:46 UTC
domenic commented on this pull request.
> +
+The “toJSON” [=regular operation=] is reserved for this usage.
+It must take zero arguments and return a [=JSON type=].
+
+The <dfn id="dfn-json-types" export lt="JSON type">JSON types</dfn> are:
+
+* [=numeric types=],
+* {{boolean}},
+* [=string types=],
+* [=nullable types=] whose [=nullable types/inner type=] is a [=JSON type=],
+* [=annotated types=] whose [=annotated types/inner type=] is a [=JSON type=],
+* [=union types=] where all of their [=member types=] are [=JSON types=],
+* [=sequence types=] whose parameterized type is a [=JSON type=],
+* [=dictionaries=] where all of their [=dictionary members|members=] are [=JSON types=],
+* [=records=] where all of their [=map/values=] are [=JSON types=],
+* [=object types=],
Should be `code`-ified like `boolean` is
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/323#discussion_r116625211
Received on Monday, 15 May 2017 23:33:46 UTC