3
3
import { applyExtension } from './extension_applier.js' ;
4
4
5
5
const Collection = {
6
+ targets : [ Array , String , Set ] ,
6
7
class : {
7
8
} ,
8
9
instance : {
@@ -49,6 +50,7 @@ const Collection = {
49
50
} ;
50
51
51
52
const SequenceableCollection = {
53
+ targets : [ Array , String ] ,
52
54
class : {
53
55
} ,
54
56
instance : {
@@ -103,6 +105,7 @@ const SequenceableCollection = {
103
105
} ;
104
106
105
107
const HeterogeneousCollection = {
108
+ targets : [ Array , Set ] ,
106
109
class : {
107
110
} ,
108
111
instance : {
@@ -128,6 +131,7 @@ const HeterogeneousCollection = {
128
131
} ;
129
132
130
133
const ArrayExtensions = {
134
+ targets : [ Array ] ,
131
135
class : {
132
136
with ( ...objects ) {
133
137
return objects ;
@@ -162,6 +166,7 @@ const ArrayExtensions = {
162
166
} ;
163
167
164
168
const StringExtensions = {
169
+ targets : [ String ] ,
165
170
class : {
166
171
} ,
167
172
instance : {
@@ -189,6 +194,7 @@ const StringExtensions = {
189
194
} ;
190
195
191
196
const SetExtensions = {
197
+ targets : [ Set ] ,
192
198
class : {
193
199
with ( ...objects ) {
194
200
return objects . asSet ( ) ;
@@ -240,10 +246,10 @@ const SetExtensions = {
240
246
} ;
241
247
242
248
export const install = ( ) => {
243
- applyExtension ( Collection , Array , String , Set ) ;
244
- applyExtension ( SequenceableCollection , Array , String ) ;
245
- applyExtension ( HeterogeneousCollection , Array , Set ) ;
246
- applyExtension ( ArrayExtensions , Array ) ;
247
- applyExtension ( StringExtensions , String ) ;
248
- applyExtension ( SetExtensions , Set ) ;
249
+ applyExtension ( Collection ) ;
250
+ applyExtension ( SequenceableCollection ) ;
251
+ applyExtension ( HeterogeneousCollection ) ;
252
+ applyExtension ( ArrayExtensions ) ;
253
+ applyExtension ( StringExtensions ) ;
254
+ applyExtension ( SetExtensions ) ;
249
255
} ;
0 commit comments