Skip to content

Commit ae8b5bd

Browse files
committed
Explicitly include annotated types in the various type categories.
Fixes #670.
1 parent c0d927a commit ae8b5bd

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

index.bs

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5313,22 +5313,28 @@ The following types are known as <dfn id="dfn-integer-type" export>integer types
53135313
{{unsigned short}},
53145314
{{long}},
53155315
{{unsigned long}},
5316-
{{long long}} and
5317-
{{unsigned long long}}.
5316+
{{long long}},
5317+
{{unsigned long long}},
5318+
and any [=annotated types=] whose [=annotated types/inner type=] is an [=integer type=].
53185319

53195320
The following types are known as <dfn id="dfn-numeric-type" export>numeric types</dfn>:
53205321
the [=integer types=],
53215322
{{float}},
53225323
{{unrestricted float}},
5323-
{{double}} and
5324-
{{unrestricted double}}.
5324+
{{double}},
5325+
{{unrestricted double}},
5326+
and any [=annotated types=] whose [=annotated types/inner type=] is a [=numeric type=].
53255327

53265328
The <dfn id="dfn-primitive-type" export>primitive types</dfn> are
5327-
{{boolean}} and the [=numeric types=].
5329+
{{boolean}},
5330+
the [=numeric types=],
5331+
and any [=annotated types=] whose [=annotated types/inner type=] is a [=primitive type=].
53285332

53295333
The <dfn id="dfn-string-type" export>string types</dfn> are
53305334
{{DOMString}}, all [=enumeration types=],
5331-
{{ByteString}} and {{USVString}}.
5335+
{{ByteString}},
5336+
{{USVString}},
5337+
and any [=annotated types=] whose [=annotated types/inner type=] is a [=string type=].
53325338

53335339
The <dfn id="dfn-typed-array-type" export>typed array types</dfn> are
53345340
{{Int8Array}},
@@ -5338,18 +5344,21 @@ The <dfn id="dfn-typed-array-type" export>typed array types</dfn> are
53385344
{{Uint16Array}},
53395345
{{Uint32Array}},
53405346
{{Uint8ClampedArray}},
5341-
{{Float32Array}} and
5342-
{{Float64Array}}.
5347+
{{Float32Array}},
5348+
{{Float64Array}},
5349+
and any [=annotated types=] whose [=annotated types/inner type=] is a [=typed array type=].
53435350

5344-
The <dfn id="dfn-buffer-source-type" export>buffer source types</dfn>
5345-
are {{ArrayBuffer}},
5351+
The <dfn id="dfn-buffer-source-type" export>buffer source types</dfn> are
5352+
{{ArrayBuffer}},
53465353
{{DataView}},
5347-
and the [=typed array types=].
5348-
5349-
The {{object}} type,
5350-
all [=interface types=], and
5351-
all [=callback interface types=]
5352-
are known as <dfn id="dfn-object-type" export>object types</dfn>.
5354+
the [=typed array types=],
5355+
and any [=annotated types=] whose [=annotated types/inner type=] is a [=buffer source type=].
5356+
5357+
The <dfn id="dfn-object-type" export>object types</dfn> are
5358+
the {{object}} type,
5359+
all [=interface types=],
5360+
all [=callback interface types=],
5361+
and any [=annotated types=] whose [=annotated types/inner type=] is an [=object type=].
53535362

53545363
Every type has a <dfn id="dfn-type-name" export>type name</dfn>, which
53555364
is a string, not necessarily unique, that identifies the type.

0 commit comments

Comments
 (0)