@bettergi/types 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/csharp/BetterGenshinImpact/Core/Recognition/OcrEngineTypes.d.ts +13 -7
- package/csharp/BetterGenshinImpact/Core/Recognition/RecognitionObject.d.ts +151 -142
- package/csharp/BetterGenshinImpact/Core/Recognition/RecognitionTypes.d.ts +20 -14
- package/csharp/BetterGenshinImpact/Core/Script/Dependence/Model/RealtimeTimer.d.ts +20 -14
- package/csharp/BetterGenshinImpact/Core/Script/Dependence/Model/SoloTask.d.ts +12 -7
- package/csharp/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainParam.d.ts +72 -0
- package/csharp/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainTask.d.ts +40 -0
- package/csharp/BetterGenshinImpact/GameTask/AutoFight/AutoFightParam.d.ts +113 -0
- package/csharp/BetterGenshinImpact/GameTask/AutoFight/AutoFightTask.d.ts +40 -0
- package/csharp/BetterGenshinImpact/GameTask/ISoloTask.d.ts +13 -0
- package/csharp/BetterGenshinImpact/GameTask/Model/Area/Converter/INodeConverter.d.ts +8 -2
- package/csharp/BetterGenshinImpact/GameTask/Model/Area/ImageRegion.d.ts +65 -52
- package/csharp/BetterGenshinImpact/GameTask/Model/Area/Region.d.ts +190 -136
- package/csharp/BetterGenshinImpact/GameTask/Model/BaseTaskParam.d.ts +13 -0
- package/csharp/BetterGenshinImpact/View/Drawable/DrawContent.d.ts +45 -0
- package/csharp/BetterGenshinImpact/View/Drawable/LineDrawable.d.ts +17 -9
- package/csharp/BetterGenshinImpact/View/Drawable/RectDrawable.d.ts +20 -10
- package/csharp/Microsoft/Extensions/Localization/IStringLocalizer.d.ts +16 -0
- package/csharp/Microsoft/Extensions/Localization/LocalizedString.d.ts +26 -0
- package/csharp/SixLabors/ImageSharp/Image.d.ts +9 -0
- package/csharp/System/Collections/DictionaryEntry.d.ts +14 -0
- package/csharp/System/Collections/Generic/Dictionary.d.ts +193 -34
- package/csharp/System/Collections/Generic/ICollection.d.ts +15 -9
- package/csharp/System/Collections/Generic/IDictionary.d.ts +11 -22
- package/csharp/System/Collections/Generic/IEnumerable.d.ts +10 -3
- package/csharp/System/Collections/Generic/IEnumerator.d.ts +10 -5
- package/csharp/System/Collections/Generic/IEqualityComparer.d.ts +9 -3
- package/csharp/System/Collections/Generic/IList.d.ts +16 -7
- package/csharp/System/Collections/Generic/IReadOnlyCollection.d.ts +9 -3
- package/csharp/System/Collections/Generic/IReadOnlyDictionary.d.ts +15 -10
- package/csharp/System/Collections/Generic/IReadOnlyList.d.ts +9 -3
- package/csharp/System/Collections/Generic/KeyValuePair.d.ts +15 -8
- package/csharp/System/Collections/Generic/List.d.ts +149 -77
- package/csharp/System/Collections/ICollection.d.ts +17 -0
- package/csharp/System/Collections/IDictionary.d.ts +29 -0
- package/csharp/System/Collections/IDictionaryEnumerator.d.ts +14 -0
- package/csharp/System/Collections/IEnumerable.d.ts +9 -0
- package/csharp/System/Collections/IEnumerator.d.ts +13 -0
- package/csharp/System/Collections/IList.d.ts +30 -0
- package/csharp/System/DateTimeOffset.d.ts +8 -0
- package/csharp/System/Drawing/Bitmap.d.ts +8 -2
- package/csharp/System/Drawing/Color.d.ts +341 -2
- package/csharp/System/Drawing/Image.d.ts +8 -2
- package/csharp/System/Drawing/KnownColor.d.ts +357 -0
- package/csharp/System/Drawing/Pen.d.ts +8 -2
- package/csharp/System/Globalization/CultureInfo.d.ts +9 -0
- package/csharp/System/IAsyncDisposable.d.ts +10 -0
- package/csharp/System/IDisposable.d.ts +9 -0
- package/csharp/System/IEquatable.d.ts +8 -0
- package/csharp/System/Runtime/Serialization/IDeserializationCallback.d.ts +9 -0
- package/csharp/System/Runtime/Serialization/ISerializable.d.ts +9 -0
- package/csharp/System/Threading/CancellationToken.d.ts +58 -0
- package/csharp/System/Threading/CancellationTokenRegistration.d.ts +27 -0
- package/csharp/System/Threading/CancellationTokenSource.d.ts +51 -0
- package/csharp/System/Threading/ITimer.d.ts +12 -0
- package/csharp/System/Threading/Tasks/ValueTask.d.ts +12 -0
- package/csharp/System/Threading/WaitHandle.d.ts +8 -0
- package/csharp/System/TimeProvider.d.ts +31 -0
- package/csharp/System/TimeSpan.d.ts +8 -0
- package/csharp/System/Windows/Media/Matrix.d.ts +80 -0
- package/csharp/System/Windows/Point.d.ts +39 -5
- package/csharp/System/Windows/Vector.d.ts +51 -0
- package/index.d.ts +3 -0
- package/modules/dispatcher.d.ts +54 -3
- package/modules/file.d.ts +3 -3
- package/modules/genshin.d.ts +18 -1
- package/modules/globalMethod.d.ts +9 -5
- package/modules/http.d.ts +43 -0
- package/package.json +1 -1
- package/csharp/Vanara/PInvoke/POINT.d.ts +0 -23
- package/csharp/Vanara/PInvoke/RECT.d.ts +0 -37
- package/csharp/Vanara/PInvoke/SIZE.d.ts +0 -19
- package/enums/wood.d.ts +0 -27
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../../../System/Collections/Generic/IEnumerable";
|
|
2
|
+
import "./LocalizedString";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace Microsoft.Extensions.Localization {
|
|
6
|
+
interface IStringLocalizer<T> {
|
|
7
|
+
[name: string]: Microsoft.Extensions.Localization.LocalizedString | ((...args: any[]) => any);
|
|
8
|
+
|
|
9
|
+
getAllStrings(
|
|
10
|
+
includeParentCultures: boolean
|
|
11
|
+
): System.Collections.Generic.IEnumerable<Microsoft.Extensions.Localization.LocalizedString>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
namespace Microsoft.Extensions.Localization {
|
|
3
|
+
class LocalizedString {
|
|
4
|
+
name: string;
|
|
5
|
+
|
|
6
|
+
value: string;
|
|
7
|
+
|
|
8
|
+
resourceNotFound: boolean;
|
|
9
|
+
|
|
10
|
+
searchedLocation: string | null;
|
|
11
|
+
|
|
12
|
+
constructor(name: string, value: string);
|
|
13
|
+
|
|
14
|
+
constructor(name: string, value: string, resourceNotFound: boolean);
|
|
15
|
+
|
|
16
|
+
constructor(
|
|
17
|
+
name: string,
|
|
18
|
+
value: string,
|
|
19
|
+
resourceNotFound: boolean,
|
|
20
|
+
searchedLocation: string | null
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {};
|
|
@@ -1,55 +1,214 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import "../../Runtime/Serialization/IDeserializationCallback";
|
|
2
|
+
import "../../Runtime/Serialization/ISerializable";
|
|
3
|
+
import "../DictionaryEntry";
|
|
4
|
+
import "../ICollection";
|
|
5
|
+
import "../IDictionary";
|
|
6
|
+
import "./DictionaryEnumerator";
|
|
7
|
+
import "./ICollection";
|
|
8
|
+
import "./IDictionary";
|
|
9
|
+
import "./IEnumerable";
|
|
10
|
+
import "./IEnumerator";
|
|
11
|
+
import "./IEqualityComparer";
|
|
12
|
+
import "./IReadOnlyCollection";
|
|
13
|
+
import "./IReadOnlyDictionary";
|
|
14
|
+
import "./KeyValuePair";
|
|
8
15
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
declare global {
|
|
17
|
+
namespace System.Collections.Generic {
|
|
18
|
+
class Dictionary<TKey, TValue>
|
|
19
|
+
implements
|
|
20
|
+
System.Collections.Generic.IDictionary<TKey, TValue>,
|
|
21
|
+
System.Collections.IDictionary,
|
|
22
|
+
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>,
|
|
23
|
+
System.Runtime.Serialization.ISerializable,
|
|
24
|
+
System.Runtime.Serialization.IDeserializationCallback
|
|
25
|
+
{
|
|
26
|
+
comparer: System.Collections.Generic.IEqualityComparer<TKey>;
|
|
13
27
|
|
|
14
|
-
|
|
28
|
+
count: number;
|
|
15
29
|
|
|
16
|
-
|
|
30
|
+
keys: System.Collections.Generic.KeyCollection<TKey, TValue>;
|
|
17
31
|
|
|
18
|
-
|
|
32
|
+
values: System.Collections.Generic.ValueCollection<TKey, TValue>;
|
|
19
33
|
|
|
20
|
-
|
|
34
|
+
add(item: System.Collections.Generic.KeyValuePair<TKey, TValue>): void;
|
|
21
35
|
|
|
22
|
-
|
|
23
|
-
add(key: TKey, value: TValue): void;
|
|
36
|
+
add(key: TKey, value: TValue): void;
|
|
24
37
|
|
|
25
|
-
|
|
38
|
+
contains(item: System.Collections.Generic.KeyValuePair<TKey, TValue>): boolean;
|
|
26
39
|
|
|
27
|
-
|
|
40
|
+
remove(item: System.Collections.Generic.KeyValuePair<TKey, TValue>): boolean;
|
|
28
41
|
|
|
29
|
-
|
|
42
|
+
remove(key: TKey): boolean;
|
|
30
43
|
|
|
31
|
-
|
|
44
|
+
remove(key: TKey, value: TValue | null): boolean;
|
|
32
45
|
|
|
33
|
-
|
|
46
|
+
clear(): void;
|
|
34
47
|
|
|
35
|
-
|
|
36
|
-
remove(key: TKey): boolean;
|
|
48
|
+
containsKey(key: TKey): boolean;
|
|
37
49
|
|
|
38
|
-
|
|
50
|
+
containsValue(value: TValue): boolean;
|
|
39
51
|
|
|
40
|
-
|
|
52
|
+
getEnumerator(): System.Collections.Generic.DictionaryEnumerator<TKey, TValue>;
|
|
41
53
|
|
|
42
|
-
|
|
54
|
+
onDeserialization(sender: any): void;
|
|
43
55
|
|
|
44
|
-
|
|
56
|
+
tryGetValue(key: TKey, value: TValue | null): boolean;
|
|
45
57
|
|
|
46
|
-
|
|
58
|
+
tryAdd(key: TKey, value: TValue): boolean;
|
|
47
59
|
|
|
48
|
-
|
|
49
|
-
|
|
60
|
+
copyTo(
|
|
61
|
+
array: System.Collections.Generic.KeyValuePair<TKey, TValue>[],
|
|
62
|
+
arrayIndex: number
|
|
63
|
+
): void;
|
|
64
|
+
|
|
65
|
+
ensureCapacity(capacity: number): number;
|
|
66
|
+
|
|
67
|
+
trimExcess(): void;
|
|
68
|
+
|
|
69
|
+
trimExcess(capacity: number): void;
|
|
70
|
+
|
|
71
|
+
isSynchronized: boolean;
|
|
72
|
+
|
|
73
|
+
syncRoot: any;
|
|
74
|
+
|
|
75
|
+
isFixedSize: boolean;
|
|
76
|
+
|
|
77
|
+
isReadOnly: boolean;
|
|
78
|
+
|
|
79
|
+
constructor();
|
|
80
|
+
|
|
81
|
+
constructor(capacity: number);
|
|
82
|
+
|
|
83
|
+
constructor(comparer: System.Collections.Generic.IEqualityComparer<TKey>);
|
|
84
|
+
|
|
85
|
+
constructor(capacity: number, comparer: System.Collections.Generic.IEqualityComparer<TKey>);
|
|
86
|
+
|
|
87
|
+
constructor(dictionary: System.Collections.Generic.IDictionary<TKey, TValue>);
|
|
88
|
+
|
|
89
|
+
constructor(
|
|
90
|
+
dictionary: System.Collections.Generic.IDictionary<TKey, TValue>,
|
|
91
|
+
comparer: System.Collections.Generic.IEqualityComparer<TKey>
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
constructor(
|
|
95
|
+
collection: System.Collections.Generic.IEnumerable<
|
|
96
|
+
System.Collections.Generic.KeyValuePair<TKey, TValue>
|
|
97
|
+
>
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
constructor(
|
|
101
|
+
collection: System.Collections.Generic.IEnumerable<
|
|
102
|
+
System.Collections.Generic.KeyValuePair<TKey, TValue>
|
|
103
|
+
>,
|
|
104
|
+
comparer: System.Collections.Generic.IEqualityComparer<TKey>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
class DictionaryEnumerator<TKey, TValue>
|
|
109
|
+
implements
|
|
110
|
+
System.Collections.Generic.IEnumerator<
|
|
111
|
+
System.Collections.Generic.KeyValuePair<TKey, TValue>
|
|
112
|
+
>,
|
|
113
|
+
System.Collections.IDictionaryEnumerator
|
|
114
|
+
{
|
|
115
|
+
moveNext(): boolean;
|
|
116
|
+
|
|
117
|
+
current: System.Collections.Generic.KeyValuePair<TKey, TValue>;
|
|
118
|
+
|
|
119
|
+
dispose(): void;
|
|
120
|
+
|
|
121
|
+
reset(): void;
|
|
122
|
+
|
|
123
|
+
entry: System.Collections.DictionaryEntry;
|
|
124
|
+
|
|
125
|
+
key: any;
|
|
126
|
+
|
|
127
|
+
value: any;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
class KeyCollection<TKey, TValue>
|
|
131
|
+
implements
|
|
132
|
+
System.Collections.Generic.ICollection<TKey>,
|
|
133
|
+
System.Collections.ICollection,
|
|
134
|
+
System.Collections.Generic.IReadOnlyCollection<TKey>
|
|
135
|
+
{
|
|
136
|
+
getEnumerator(): System.Collections.Generic.KeyCollection.Enumerator<TKey>;
|
|
137
|
+
|
|
138
|
+
copyTo(array: TKey[], index: number): void;
|
|
139
|
+
|
|
140
|
+
count: number;
|
|
50
141
|
|
|
51
|
-
|
|
142
|
+
isReadOnly: boolean;
|
|
52
143
|
|
|
53
|
-
|
|
144
|
+
add(item: TKey): void;
|
|
145
|
+
|
|
146
|
+
clear(): void;
|
|
147
|
+
|
|
148
|
+
contains(key: TKey): boolean;
|
|
149
|
+
|
|
150
|
+
remove(item: TKey): boolean;
|
|
151
|
+
|
|
152
|
+
isSynchronized: boolean;
|
|
153
|
+
|
|
154
|
+
syncRoot: any;
|
|
155
|
+
|
|
156
|
+
constructor(dictionary: System.Collections.Generic.Dictionary<TKey, TValue>);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
namespace KeyCollection {
|
|
160
|
+
class Enumerator<TKey> implements System.Collections.Generic.IEnumerator<TKey> {
|
|
161
|
+
dispose(): void;
|
|
162
|
+
|
|
163
|
+
moveNext(): boolean;
|
|
164
|
+
|
|
165
|
+
current: TKey;
|
|
166
|
+
|
|
167
|
+
reset(): void;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
class ValueCollection<TKey, TValue>
|
|
172
|
+
implements
|
|
173
|
+
System.Collections.Generic.ICollection<TValue>,
|
|
174
|
+
System.Collections.ICollection,
|
|
175
|
+
System.Collections.Generic.IReadOnlyCollection<TValue>
|
|
176
|
+
{
|
|
177
|
+
getEnumerator(): System.Collections.Generic.ValueCollection.Enumerator<TValue>;
|
|
178
|
+
|
|
179
|
+
copyTo(array: TValue[], index: number): void;
|
|
180
|
+
|
|
181
|
+
count: number;
|
|
182
|
+
|
|
183
|
+
isReadOnly: boolean;
|
|
184
|
+
|
|
185
|
+
add(item: TValue): void;
|
|
186
|
+
|
|
187
|
+
clear(): void;
|
|
188
|
+
|
|
189
|
+
contains(key: TValue): boolean;
|
|
190
|
+
|
|
191
|
+
remove(item: TValue): boolean;
|
|
192
|
+
|
|
193
|
+
isSynchronized: boolean;
|
|
194
|
+
|
|
195
|
+
syncRoot: any;
|
|
196
|
+
|
|
197
|
+
constructor(dictionary: System.Collections.Generic.Dictionary<TKey, TValue>);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
namespace ValueCollection {
|
|
201
|
+
class Enumerator<TValue> implements System.Collections.Generic.IEnumerator<TValue> {
|
|
202
|
+
dispose(): void;
|
|
203
|
+
|
|
204
|
+
moveNext(): boolean;
|
|
205
|
+
|
|
206
|
+
current: TValue;
|
|
207
|
+
|
|
208
|
+
reset(): void;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
54
213
|
|
|
55
|
-
|
|
214
|
+
export {};
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./IEnumerable";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare global {
|
|
4
|
+
namespace System.Collections.Generic {
|
|
5
|
+
interface ICollection<T> extends System.Collections.Generic.IEnumerable<T> {
|
|
6
|
+
count: number;
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
isReadOnly: boolean;
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
add(item: T): void;
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
clear(): void;
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
contains(item: T): boolean;
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
copyTo(array: T[], arrayIndex: number): void;
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
remove(item: T): boolean;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
17
21
|
}
|
|
22
|
+
|
|
23
|
+
export {};
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
containsKey(key: TKey): boolean;
|
|
11
|
-
|
|
12
|
-
add(item: KeyValuePair<TKey, TValue>): void;
|
|
13
|
-
|
|
14
|
-
// overload
|
|
15
|
-
add(key: TKey, value: TValue): void;
|
|
16
|
-
|
|
17
|
-
remove(item: KeyValuePair<TKey, TValue>): boolean;
|
|
18
|
-
|
|
19
|
-
// overload
|
|
20
|
-
remove(key: TKey): boolean;
|
|
21
|
-
|
|
22
|
-
tryGetValue(key: TKey, value: TValue | null): boolean;
|
|
1
|
+
import "./ICollection";
|
|
2
|
+
import "./IEnumerable";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace System.Collections.Generic {
|
|
6
|
+
interface IDictionary<TKey, TValue>
|
|
7
|
+
extends System.Collections.Generic.ICollection<KeyValuePair<TKey, TValue>>,
|
|
8
|
+
System.Collections.Generic.IEnumerable<KeyValuePair<TKey, TValue>> {}
|
|
9
|
+
}
|
|
23
10
|
}
|
|
11
|
+
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../Collections/IEnumerable";
|
|
2
|
+
import "./IEnumerator";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
declare global {
|
|
5
|
+
namespace System.Collections.Generic {
|
|
6
|
+
interface IEnumerable<T> extends System.Collections.IEnumerable {
|
|
7
|
+
getEnumerator(): System.Collections.Generic.IEnumerator<T>;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
5
10
|
}
|
|
11
|
+
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import "../../Collections/IEnumerator";
|
|
2
|
+
import "../../IDisposable";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare global {
|
|
5
|
+
namespace System.Collections.Generic {
|
|
6
|
+
interface IEnumerator<T> extends System.IDisposable, System.Collections.IEnumerator {
|
|
7
|
+
current: T;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
7
10
|
}
|
|
11
|
+
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare global {
|
|
2
|
+
namespace System.Collections.Generic {
|
|
3
|
+
interface IEqualityComparer<T> {
|
|
4
|
+
equals(x: T | null, y: T | null): boolean;
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
getHashCode(obj: T): number;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
5
9
|
}
|
|
10
|
+
|
|
11
|
+
export {};
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./ICollection";
|
|
2
|
+
import "./IEnumerable";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
declare global {
|
|
5
|
+
namespace System.Collections.Generic {
|
|
6
|
+
interface IList<T>
|
|
7
|
+
extends System.Collections.Generic.ICollection<T>,
|
|
8
|
+
System.Collections.Generic.IEnumerable<T> {
|
|
9
|
+
isFixedSize: boolean;
|
|
5
10
|
|
|
6
|
-
|
|
11
|
+
[index: number]: T;
|
|
7
12
|
|
|
8
|
-
|
|
13
|
+
indexOf(item: T): number;
|
|
9
14
|
|
|
10
|
-
|
|
15
|
+
insert(index: number, item: T): void;
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
removeAt(index: number): void;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
13
20
|
}
|
|
21
|
+
|
|
22
|
+
export {};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./IEnumerable";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare global {
|
|
4
|
+
namespace System.Collections.Generic {
|
|
5
|
+
interface IReadOnlyCollection<T> extends System.Collections.Generic.IEnumerable<T> {
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
5
9
|
}
|
|
10
|
+
|
|
11
|
+
export {};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { KeyValuePair } from "./KeyValuePair";
|
|
1
|
+
import "./IEnumerable";
|
|
2
|
+
import "./IReadOnlyCollection";
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
declare global {
|
|
5
|
+
namespace System.Collections.Generic {
|
|
6
|
+
interface IReadOnlyDictionary<TKey, TValue>
|
|
7
|
+
extends System.Collections.Generic.IReadOnlyCollection<KeyValuePair<TKey, TValue>>,
|
|
8
|
+
System.Collections.Generic.IEnumerable<KeyValuePair<TKey, TValue>> {
|
|
9
|
+
containsKey(key: TKey): boolean;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
tryGetValue(key: TKey, value: TValue | null): boolean;
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
keys: System.Collections.Generic.IEnumerable<TKey>;
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
values: System.Collections.Generic.IEnumerable<TValue>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
15
18
|
}
|
|
19
|
+
|
|
20
|
+
export {};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./IReadOnlyCollection";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare global {
|
|
4
|
+
namespace System.Collections.Generic {
|
|
5
|
+
interface IReadOnlyList<T> extends System.Collections.Generic.IReadOnlyCollection<T> {
|
|
6
|
+
[index: number]: T;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
5
9
|
}
|
|
10
|
+
|
|
11
|
+
export {};
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare global {
|
|
2
|
+
namespace System.Collections.Generic {
|
|
3
|
+
class KeyValuePair<TKey, TValue> {
|
|
4
|
+
key: TKey;
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
value: TValue;
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
static create<TKey, TValue>(
|
|
9
|
+
key: TKey,
|
|
10
|
+
value: TValue
|
|
11
|
+
): System.Collections.Generic.KeyValuePair<TKey, TValue>;
|
|
7
12
|
|
|
8
|
-
|
|
13
|
+
deconstruct(outKey: TKey, outValue: TValue): void;
|
|
9
14
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
constructor(key: TKey, value: TValue);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
13
18
|
}
|
|
19
|
+
|
|
20
|
+
export {};
|