@@ -15,6 +15,21 @@ interface MapConstructor {
15
15
}
16
16
declare var Map : MapConstructor ;
17
17
18
+ interface ReadonlyMap < K , V > {
19
+ forEach (
20
+ callbackfn : ( value : V , index : K , map : ReadonlyMap < K , V > ) => void ,
21
+ thisArg ?: any ) : void ;
22
+ get ( key : K ) : V | undefined ;
23
+ has ( key : K ) : boolean ;
24
+ readonly size : number ;
25
+ }
26
+
27
+ interface ReadonlyMapConstructor {
28
+ new < K , V > ( entries ?: [ K , V ] [ ] ) : ReadonlyMap < K , V > ;
29
+ readonly prototype : ReadonlyMap < any , any > ;
30
+ }
31
+ declare var ReadonlyMap : ReadonlyMapConstructor ;
32
+
18
33
interface WeakMap < K , V > {
19
34
delete ( key : K ) : boolean ;
20
35
get ( key : K ) : V | undefined ;
@@ -45,6 +60,19 @@ interface SetConstructor {
45
60
}
46
61
declare var Set : SetConstructor ;
47
62
63
+ interface ReadonlySet < T > {
64
+ forEach ( callbackfn : ( value : T , index : T , set : ReadonlySet < T > ) => void , thisArg ?: any ) :
65
+ void ;
66
+ has ( value : T ) : boolean ;
67
+ readonly size : number ;
68
+ }
69
+
70
+ interface ReadonlySetConstructor {
71
+ new < T > ( values ?: T [ ] ) : ReadonlySet < T > ;
72
+ readonly prototype : ReadonlySet < any > ;
73
+ }
74
+ declare var ReadonlySet : ReadonlySetConstructor ;
75
+
48
76
interface WeakSet < T > {
49
77
add ( value : T ) : this;
50
78
delete ( value : T ) : boolean ;
0 commit comments