Skip to content

Commit a352edb

Browse files
authored
More fixes for observable array type
* Observable array type must not be nullable, * Disallow observable array type being the inner type of an observable array type.
1 parent 9f1b7c1 commit a352edb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6368,7 +6368,8 @@ character after an existing type.
63686368
The [=nullable types/inner type=] must not be:
63696369

63706370
* {{any}},
6371-
* a [=Promise type=],
6371+
* a [=promise type=],
6372+
* an [=observable array type=],
63726373
* another nullable type, or
63736374
* a [=union type=] that itself [=includes a nullable type=]
63746375
or has a dictionary type as one of its [=flattened member types=].
@@ -6825,7 +6826,8 @@ An <dfn id="dfn-observable-array-type" export>observable array type</dfn> is a p
68256826
whose values are references to a combination of a mutable list of objects of type |T|, as well as
68266827
behavior to perform when author code modifies the contents of the list.
68276828

6828-
The parameterized type must not be a [=dictionary type=], [=sequence type=], or [=record type=].
6829+
The parameterized type |T| must not be a [=dictionary type=], [=sequence type=], [=record type=],
6830+
or [=observable array type=]. However, |T| may be nullable.
68296831

68306832
Similar to [=sequence types=] and [=frozen array types=], observable array types wrap around
68316833
ECMAScript array types, imposing additional semantics on their usage.

0 commit comments

Comments
 (0)