@bettergi/types 0.0.11 → 0.0.13

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.
Files changed (73) hide show
  1. package/README.md +8 -0
  2. package/csharp/BetterGenshinImpact/Core/Recognition/OcrEngineTypes.d.ts +13 -7
  3. package/csharp/BetterGenshinImpact/Core/Recognition/RecognitionObject.d.ts +151 -142
  4. package/csharp/BetterGenshinImpact/Core/Recognition/RecognitionTypes.d.ts +20 -14
  5. package/csharp/BetterGenshinImpact/Core/Script/Dependence/Model/RealtimeTimer.d.ts +20 -14
  6. package/csharp/BetterGenshinImpact/Core/Script/Dependence/Model/SoloTask.d.ts +12 -7
  7. package/csharp/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainParam.d.ts +72 -0
  8. package/csharp/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainTask.d.ts +40 -0
  9. package/csharp/BetterGenshinImpact/GameTask/AutoFight/AutoFightParam.d.ts +113 -0
  10. package/csharp/BetterGenshinImpact/GameTask/AutoFight/AutoFightTask.d.ts +40 -0
  11. package/csharp/BetterGenshinImpact/GameTask/ISoloTask.d.ts +13 -0
  12. package/csharp/BetterGenshinImpact/GameTask/Model/Area/Converter/INodeConverter.d.ts +8 -2
  13. package/csharp/BetterGenshinImpact/GameTask/Model/Area/ImageRegion.d.ts +65 -52
  14. package/csharp/BetterGenshinImpact/GameTask/Model/Area/Region.d.ts +190 -136
  15. package/csharp/BetterGenshinImpact/GameTask/Model/BaseTaskParam.d.ts +13 -0
  16. package/csharp/BetterGenshinImpact/View/Drawable/DrawContent.d.ts +45 -0
  17. package/csharp/BetterGenshinImpact/View/Drawable/LineDrawable.d.ts +17 -9
  18. package/csharp/BetterGenshinImpact/View/Drawable/RectDrawable.d.ts +20 -10
  19. package/csharp/Microsoft/Extensions/Localization/IStringLocalizer.d.ts +16 -0
  20. package/csharp/Microsoft/Extensions/Localization/LocalizedString.d.ts +26 -0
  21. package/csharp/SixLabors/ImageSharp/Image.d.ts +9 -0
  22. package/csharp/System/Collections/DictionaryEntry.d.ts +14 -0
  23. package/csharp/System/Collections/Generic/Dictionary.d.ts +193 -34
  24. package/csharp/System/Collections/Generic/ICollection.d.ts +15 -9
  25. package/csharp/System/Collections/Generic/IDictionary.d.ts +11 -22
  26. package/csharp/System/Collections/Generic/IEnumerable.d.ts +10 -3
  27. package/csharp/System/Collections/Generic/IEnumerator.d.ts +10 -5
  28. package/csharp/System/Collections/Generic/IEqualityComparer.d.ts +9 -3
  29. package/csharp/System/Collections/Generic/IList.d.ts +16 -7
  30. package/csharp/System/Collections/Generic/IReadOnlyCollection.d.ts +9 -3
  31. package/csharp/System/Collections/Generic/IReadOnlyDictionary.d.ts +15 -10
  32. package/csharp/System/Collections/Generic/IReadOnlyList.d.ts +9 -3
  33. package/csharp/System/Collections/Generic/KeyValuePair.d.ts +15 -8
  34. package/csharp/System/Collections/Generic/List.d.ts +149 -77
  35. package/csharp/System/Collections/ICollection.d.ts +17 -0
  36. package/csharp/System/Collections/IDictionary.d.ts +29 -0
  37. package/csharp/System/Collections/IDictionaryEnumerator.d.ts +14 -0
  38. package/csharp/System/Collections/IEnumerable.d.ts +9 -0
  39. package/csharp/System/Collections/IEnumerator.d.ts +13 -0
  40. package/csharp/System/Collections/IList.d.ts +30 -0
  41. package/csharp/System/DateTimeOffset.d.ts +8 -0
  42. package/csharp/System/Drawing/Bitmap.d.ts +8 -2
  43. package/csharp/System/Drawing/Color.d.ts +341 -2
  44. package/csharp/System/Drawing/Image.d.ts +8 -2
  45. package/csharp/System/Drawing/KnownColor.d.ts +357 -0
  46. package/csharp/System/Drawing/Pen.d.ts +8 -2
  47. package/csharp/System/Globalization/CultureInfo.d.ts +9 -0
  48. package/csharp/System/IAsyncDisposable.d.ts +10 -0
  49. package/csharp/System/IDisposable.d.ts +9 -0
  50. package/csharp/System/IEquatable.d.ts +8 -0
  51. package/csharp/System/Runtime/Serialization/IDeserializationCallback.d.ts +9 -0
  52. package/csharp/System/Runtime/Serialization/ISerializable.d.ts +9 -0
  53. package/csharp/System/Threading/CancellationToken.d.ts +58 -0
  54. package/csharp/System/Threading/CancellationTokenRegistration.d.ts +27 -0
  55. package/csharp/System/Threading/CancellationTokenSource.d.ts +51 -0
  56. package/csharp/System/Threading/ITimer.d.ts +12 -0
  57. package/csharp/System/Threading/Tasks/ValueTask.d.ts +12 -0
  58. package/csharp/System/Threading/WaitHandle.d.ts +8 -0
  59. package/csharp/System/TimeProvider.d.ts +31 -0
  60. package/csharp/System/TimeSpan.d.ts +8 -0
  61. package/csharp/System/Windows/Media/Matrix.d.ts +80 -0
  62. package/csharp/System/Windows/Point.d.ts +39 -5
  63. package/csharp/System/Windows/Vector.d.ts +51 -0
  64. package/modules/dispatcher.d.ts +54 -3
  65. package/modules/file.d.ts +3 -3
  66. package/modules/genshin.d.ts +18 -1
  67. package/modules/globalMethod.d.ts +9 -5
  68. package/modules/http.d.ts +23 -21
  69. package/package.json +1 -1
  70. package/csharp/Vanara/PInvoke/POINT.d.ts +0 -23
  71. package/csharp/Vanara/PInvoke/RECT.d.ts +0 -37
  72. package/csharp/Vanara/PInvoke/SIZE.d.ts +0 -19
  73. package/enums/wood.d.ts +0 -27
@@ -0,0 +1,45 @@
1
+ import "../../../System/Collections/Generic/Dictionary";
2
+ import "../../../System/Collections/Generic/List";
3
+ import "./LineDrawable";
4
+ import "./RectDrawable";
5
+
6
+ declare global {
7
+ namespace BetterGenshinImpact.View.Drawable {
8
+ class DrawContent {
9
+ /** 在遮罩窗口上绘制的矩形 */
10
+ rectList: System.Collections.Generic.Dictionary<
11
+ string,
12
+ System.Collections.Generic.List<BetterGenshinImpact.View.Drawable.RectDrawable>
13
+ >;
14
+
15
+ /** 在遮罩窗口上绘制的文本 */
16
+ textList: System.Collections.Generic.Dictionary<
17
+ string,
18
+ System.Collections.Generic.List<BetterGenshinImpact.View.Drawable.RectDrawable>
19
+ >;
20
+
21
+ /** 在遮罩窗口上绘制的文本 */
22
+ lineList: System.Collections.Generic.Dictionary<
23
+ string,
24
+ System.Collections.Generic.List<BetterGenshinImpact.View.Drawable.RectDrawable>
25
+ >;
26
+
27
+ putRect(key: string, newRect: BetterGenshinImpact.View.Drawable.RectDrawable): void;
28
+
29
+ putOrRemoveRectList(
30
+ key: string,
31
+ list: System.Collections.Generic.List<BetterGenshinImpact.View.Drawable.RectDrawable> | null
32
+ ): void;
33
+
34
+ removeRects(key: string): void;
35
+
36
+ putLine(key: string, newLine: BetterGenshinImpact.View.Drawable.LineDrawable): void;
37
+
38
+ removeLines(key: string): void;
39
+
40
+ clearAll(): void;
41
+ }
42
+ }
43
+ }
44
+
45
+ export {};
@@ -1,13 +1,21 @@
1
- import { Pen } from "../../../System/Drawing/Pen";
2
- import { Point } from "../../../System/Windows/Point";
1
+ import "../../../System/Drawing/Pen";
2
+ import "../../../System/Windows/Point";
3
3
 
4
- export interface LineDrawable {
5
- /** 绘制直线起始位置 */
6
- p1: Point;
4
+ declare global {
5
+ namespace BetterGenshinImpact.View.Drawable {
6
+ class LineDrawable {
7
+ /** 绘制直线起始位置 */
8
+ p1: System.Windows.Point;
7
9
 
8
- /** 绘制直线终点位置 */
9
- p2: Point;
10
+ /** 绘制直线终点位置 */
11
+ p2: System.Windows.Point;
10
12
 
11
- /** 绘制颜色及宽度 */
12
- pen: Pen;
13
+ /** 绘制颜色及宽度 */
14
+ pen: System.Drawing.Pen;
15
+
16
+ constructor(p1: System.Windows.Point, p2: System.Windows.Point, pen: System.Drawing.Pen);
17
+ }
18
+ }
13
19
  }
20
+
21
+ export {};
@@ -1,16 +1,26 @@
1
1
  import { Rect } from "mirada/dist/src/types/opencv";
2
- import { Pen } from "../../../System/Drawing/Pen";
2
+ import "../../../System/Drawing/Pen";
3
3
 
4
- export interface RectDrawable {
5
- /** 绘制区域名称 */
6
- name: string | null;
4
+ declare global {
5
+ namespace BetterGenshinImpact.View.Drawable {
6
+ class RectDrawable {
7
+ /** 绘制区域名称 */
8
+ name: string | null;
7
9
 
8
- /** 绘制区域 */
9
- rect: Rect;
10
+ /** 绘制区域 */
11
+ rect: Rect;
10
12
 
11
- /** 绘制颜色及宽度 */
12
- pen: Pen;
13
+ /** 绘制颜色及宽度 */
14
+ pen: System.Drawing.Pen;
13
15
 
14
- /** 区域面积是否为空 */
15
- isEmpty: boolean;
16
+ /** 区域面积是否为空 */
17
+ isEmpty: boolean;
18
+
19
+ constructor(rect: Rect, pen?: System.Drawing.Pen, name?: string);
20
+
21
+ constructor(rect: Rect, name?: string);
22
+ }
23
+ }
16
24
  }
25
+
26
+ export {};
@@ -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 {};
@@ -0,0 +1,9 @@
1
+ declare global {
2
+ namespace SixLabors.ImageSharp {
3
+ class Image {
4
+ // TODO: 待补充(如果有必要)
5
+ }
6
+ }
7
+ }
8
+
9
+ export {};
@@ -0,0 +1,14 @@
1
+ declare global {
2
+ namespace System.Collections {
3
+ class DictionaryEntry {
4
+ key: any;
5
+ value: any;
6
+
7
+ deconstruct(): [any, any];
8
+
9
+ constructor(key: any, value: any);
10
+ }
11
+ }
12
+ }
13
+
14
+ export {};
@@ -1,55 +1,214 @@
1
- import { ICollection } from "./ICollection";
2
- import { IDictionary } from "./IDictionary";
3
- import { IEnumerable } from "./IEnumerable";
4
- import { IEnumerator } from "./IEnumerator";
5
- import { IEqualityComparer } from "./IEqualityComparer";
6
- import { IReadOnlyDictionary } from "./IReadOnlyDictionary";
7
- import { KeyValuePair } from "./KeyValuePair";
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
- export interface Dictionary<TKey, TValue>
10
- extends IDictionary<TKey, TValue>,
11
- IReadOnlyDictionary<TKey, TValue> {
12
- comparer: IEqualityComparer<TKey>;
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
- count: number;
28
+ count: number;
15
29
 
16
- keys: KeyCollection<TKey, TValue>;
30
+ keys: System.Collections.Generic.KeyCollection<TKey, TValue>;
17
31
 
18
- values: ValueCollection<TKey, TValue>;
32
+ values: System.Collections.Generic.ValueCollection<TKey, TValue>;
19
33
 
20
- add(item: KeyValuePair<TKey, TValue>): void;
34
+ add(item: System.Collections.Generic.KeyValuePair<TKey, TValue>): void;
21
35
 
22
- // overload
23
- add(key: TKey, value: TValue): void;
36
+ add(key: TKey, value: TValue): void;
24
37
 
25
- clear(): void;
38
+ contains(item: System.Collections.Generic.KeyValuePair<TKey, TValue>): boolean;
26
39
 
27
- containsKey(key: TKey): boolean;
40
+ remove(item: System.Collections.Generic.KeyValuePair<TKey, TValue>): boolean;
28
41
 
29
- containsValue(value: TValue): boolean;
42
+ remove(key: TKey): boolean;
30
43
 
31
- getEnumerator(): Enumerator<KeyValuePair<TKey, TValue>>;
44
+ remove(key: TKey, value: TValue | null): boolean;
32
45
 
33
- remove(item: KeyValuePair<TKey, TValue>): boolean;
46
+ clear(): void;
34
47
 
35
- // overload
36
- remove(key: TKey): boolean;
48
+ containsKey(key: TKey): boolean;
37
49
 
38
- remove(key: TKey, value: TValue | null): boolean;
50
+ containsValue(value: TValue): boolean;
39
51
 
40
- tryGetValue(key: TKey, value: TValue | null): boolean;
52
+ getEnumerator(): System.Collections.Generic.DictionaryEnumerator<TKey, TValue>;
41
53
 
42
- tryAdd(key: TKey, value: TValue): boolean;
54
+ onDeserialization(sender: any): void;
43
55
 
44
- ensureCapacity(capacity: number): number;
56
+ tryGetValue(key: TKey, value: TValue | null): boolean;
45
57
 
46
- trimExcess(): void;
58
+ tryAdd(key: TKey, value: TValue): boolean;
47
59
 
48
- trimExcess(capacity: number): void;
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
- interface KeyCollection<TKey, TValue> extends ICollection<TKey>, IEnumerable<TKey> {}
142
+ isReadOnly: boolean;
52
143
 
53
- interface ValueCollection<TKey, TValue> extends ICollection<TValue>, IEnumerable<TValue> {}
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
- interface Enumerator<T> extends IEnumerator<T> {}
214
+ export {};
@@ -1,17 +1,23 @@
1
- import { IEnumerable } from "./IEnumerable";
1
+ import "./IEnumerable";
2
2
 
3
- export interface ICollection<T> extends IEnumerable<T> {
4
- count: number;
3
+ declare global {
4
+ namespace System.Collections.Generic {
5
+ interface ICollection<T> extends System.Collections.Generic.IEnumerable<T> {
6
+ count: number;
5
7
 
6
- isReadOnly: boolean;
8
+ isReadOnly: boolean;
7
9
 
8
- add(item: T): void;
10
+ add(item: T): void;
9
11
 
10
- clear(): void;
12
+ clear(): void;
11
13
 
12
- contains(item: T): boolean;
14
+ contains(item: T): boolean;
13
15
 
14
- copyTo(array: T[], arrayIndex: number): void;
16
+ copyTo(array: T[], arrayIndex: number): void;
15
17
 
16
- remove(item: T): boolean;
18
+ remove(item: T): boolean;
19
+ }
20
+ }
17
21
  }
22
+
23
+ export {};
@@ -1,23 +1,12 @@
1
- import { ICollection } from "./ICollection";
2
- import { IEnumerable } from "./IEnumerable";
3
- import { KeyValuePair } from "./KeyValuePair";
4
-
5
- export interface IDictionary<TKey, TValue> extends ICollection<KeyValuePair<TKey, TValue>> {
6
- keys: ICollection<TKey>;
7
-
8
- values: ICollection<TValue>;
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 { IEnumerator } from "./IEnumerator";
1
+ import "../../Collections/IEnumerable";
2
+ import "./IEnumerator";
2
3
 
3
- export interface IEnumerable<T> {
4
- getEnumerator(): IEnumerator<T>;
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
- export interface IEnumerator<T> {
2
- moveNext(): boolean;
1
+ import "../../Collections/IEnumerator";
2
+ import "../../IDisposable";
3
3
 
4
- current: T;
5
-
6
- reset(): void;
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
- export interface IEqualityComparer<T> {
2
- equals(x: T | null, y: T | null): boolean;
1
+ declare global {
2
+ namespace System.Collections.Generic {
3
+ interface IEqualityComparer<T> {
4
+ equals(x: T | null, y: T | null): boolean;
3
5
 
4
- getHashCode(obj: T): number;
6
+ getHashCode(obj: T): number;
7
+ }
8
+ }
5
9
  }
10
+
11
+ export {};
@@ -1,13 +1,22 @@
1
- import { ICollection } from "./ICollection";
1
+ import "./ICollection";
2
+ import "./IEnumerable";
2
3
 
3
- export interface IList<T> extends ICollection<T> {
4
- isFixedSize: boolean;
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
- [index: number]: T;
11
+ [index: number]: T;
7
12
 
8
- indexOf(item: T): number;
13
+ indexOf(item: T): number;
9
14
 
10
- insert(index: number, item: T): void;
15
+ insert(index: number, item: T): void;
11
16
 
12
- removeAt(index: number): void;
17
+ removeAt(index: number): void;
18
+ }
19
+ }
13
20
  }
21
+
22
+ export {};
@@ -1,5 +1,11 @@
1
- import { IEnumerable } from "./IEnumerable";
1
+ import "./IEnumerable";
2
2
 
3
- interface IReadOnlyCollection<T> extends IEnumerable<T> {
4
- count: number;
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 { IEnumerable } from "./IEnumerable";
2
- import { IReadOnlyCollection } from "./IReadOnlyCollection";
3
- import { KeyValuePair } from "./KeyValuePair";
1
+ import "./IEnumerable";
2
+ import "./IReadOnlyCollection";
4
3
 
5
- export interface IReadOnlyDictionary<TKey, TValue>
6
- extends IReadOnlyCollection<KeyValuePair<TKey, TValue>>,
7
- IEnumerable<KeyValuePair<TKey, TValue>> {
8
- containsKey(key: TKey): boolean;
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
- tryGetValue(key: TKey, value: TValue | null): boolean;
11
+ tryGetValue(key: TKey, value: TValue | null): boolean;
11
12
 
12
- Keys: IEnumerable<TKey>;
13
+ keys: System.Collections.Generic.IEnumerable<TKey>;
13
14
 
14
- Values: IEnumerable<TValue>;
15
+ values: System.Collections.Generic.IEnumerable<TValue>;
16
+ }
17
+ }
15
18
  }
19
+
20
+ export {};
@@ -1,5 +1,11 @@
1
- import { IReadOnlyCollection } from "./IReadOnlyCollection";
1
+ import "./IReadOnlyCollection";
2
2
 
3
- interface IReadOnlyList<T> extends IReadOnlyCollection<T> {
4
- [index: number]: T;
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 {};