@tsonic/core 10.0.9 → 10.0.10

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.
@@ -9,15 +9,11 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
9
9
  import type { ptr } from "@tsonic/core/types.js";
10
10
 
11
11
  // Import types from other namespaces
12
- import type { Dictionary_2, IEnumerable_1, IList_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
13
- import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
14
- import type { Action_1, Boolean as ClrBoolean, Func_2, IEquatable_1, Int32, Object as ClrObject, String as ClrString, Type, ValueType, Void } from "@tsonic/dotnet/System/internal/index.js";
12
+ import type { Dictionary, IEnumerable, IList } from "@tsonic/dotnet/System.Collections.Generic.js";
13
+ import * as System_Internal from "@tsonic/dotnet/System.js";
14
+ import type { Action, Boolean as ClrBoolean, Func, IEquatable, Int32, Object as ClrObject, String as ClrString, Type, ValueType, Void } from "@tsonic/dotnet/System.js";
15
15
 
16
16
  export interface IteratorResult_1$instance<T> {
17
- readonly __tsonic_type_Tsonic_Runtime_IteratorResult_1: never;
18
-
19
- readonly __tsonic_iface_System_IEquatable_1: never;
20
-
21
17
  readonly done: boolean;
22
18
  Done: boolean;
23
19
  readonly value: T;
@@ -38,55 +34,50 @@ export const IteratorResult_1: {
38
34
  export type IteratorResult_1<T> = IteratorResult_1$instance<T>;
39
35
 
40
36
  export interface DictionaryAdapter_1$instance<T> {
41
- readonly __tsonic_type_Tsonic_Runtime_DictionaryAdapter_1: never;
42
-
43
- [key: string]: T | undefined;
44
- readonly Keys: IEnumerable_1<System_Internal.String>;
45
- readonly Values: IEnumerable_1<T | undefined>;
37
+ Item: T | undefined;
38
+ readonly Keys: IEnumerable<System_Internal.String>;
39
+ readonly Values: IEnumerable<T | undefined>;
46
40
  ContainsKey(key: string): boolean;
47
- GetDictionary(): Dictionary_2<System_Internal.String, unknown | undefined>;
41
+ GetDictionary(): Dictionary<System_Internal.String, unknown | undefined>;
48
42
  }
49
43
 
50
44
 
51
45
  export const DictionaryAdapter_1: {
52
- new<T>(dictionary: Dictionary_2<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
46
+ new<T>(dictionary: Dictionary<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
53
47
  };
54
48
 
55
49
 
56
50
  export type DictionaryAdapter_1<T> = DictionaryAdapter_1$instance<T>;
57
51
 
58
52
  export interface DynamicObject$instance {
59
- readonly __tsonic_type_Tsonic_Runtime_DynamicObject: never;
60
-
61
- [key: string]: unknown | undefined;
53
+ get Item(): unknown | undefined;
54
+ set Item(value: unknown);
62
55
  GetKeys(): string[];
63
56
  GetProperty<T>(key: string): T | undefined;
64
57
  GetValues(): (unknown | undefined)[];
65
58
  HasProperty(key: string): boolean;
66
59
  SetProperty(key: string, value: unknown): void;
67
- ToDictionary(): Dictionary_2<System_Internal.String, unknown | undefined>;
60
+ ToDictionary(): Dictionary<System_Internal.String, unknown | undefined>;
68
61
  }
69
62
 
70
63
 
71
64
  export const DynamicObject: {
72
65
  new(): DynamicObject;
73
- FromDictionary(properties: Dictionary_2<System_Internal.String, unknown>): DynamicObject;
66
+ FromDictionary(properties: Dictionary<System_Internal.String, unknown>): DynamicObject;
74
67
  };
75
68
 
76
69
 
77
70
  export type DynamicObject = DynamicObject$instance;
78
71
 
79
72
  export interface Union_2$instance<T1, T2> {
80
- readonly __tsonic_type_Tsonic_Runtime_Union_2: never;
81
-
82
73
  As1(): T1;
83
74
  As2(): T2;
84
75
  Equals(obj: unknown): boolean;
85
76
  GetHashCode(): int;
86
77
  Is1(): boolean;
87
78
  Is2(): boolean;
88
- Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>): TResult;
89
- Match(onT1: Action_1<T1>, onT2: Action_1<T2>): void;
79
+ Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>): TResult;
80
+ Match(onT1: Action<T1>, onT2: Action<T2>): void;
90
81
  ToString(): string | undefined;
91
82
  TryAs1(value: T1): boolean;
92
83
  TryAs2(value: T2): boolean;
@@ -94,6 +85,7 @@ export interface Union_2$instance<T1, T2> {
94
85
 
95
86
 
96
87
  export const Union_2: {
88
+ new<T1, T2>(): Union_2<T1, T2>;
97
89
  From1<T1, T2>(value: T1): Union_2<T1, T2>;
98
90
  From2<T1, T2>(value: T2): Union_2<T1, T2>;
99
91
  };
@@ -102,8 +94,6 @@ export const Union_2: {
102
94
  export type Union_2<T1, T2> = Union_2$instance<T1, T2>;
103
95
 
104
96
  export interface Union_3$instance<T1, T2, T3> {
105
- readonly __tsonic_type_Tsonic_Runtime_Union_3: never;
106
-
107
97
  As1(): T1;
108
98
  As2(): T2;
109
99
  As3(): T3;
@@ -112,8 +102,8 @@ export interface Union_3$instance<T1, T2, T3> {
112
102
  Is1(): boolean;
113
103
  Is2(): boolean;
114
104
  Is3(): boolean;
115
- Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>): TResult;
116
- Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>): void;
105
+ Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>): TResult;
106
+ Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>): void;
117
107
  ToString(): string | undefined;
118
108
  TryAs1(value: T1): boolean;
119
109
  TryAs2(value: T2): boolean;
@@ -122,6 +112,7 @@ export interface Union_3$instance<T1, T2, T3> {
122
112
 
123
113
 
124
114
  export const Union_3: {
115
+ new<T1, T2, T3>(): Union_3<T1, T2, T3>;
125
116
  From1<T1, T2, T3>(value: T1): Union_3<T1, T2, T3>;
126
117
  From2<T1, T2, T3>(value: T2): Union_3<T1, T2, T3>;
127
118
  From3<T1, T2, T3>(value: T3): Union_3<T1, T2, T3>;
@@ -131,8 +122,6 @@ export const Union_3: {
131
122
  export type Union_3<T1, T2, T3> = Union_3$instance<T1, T2, T3>;
132
123
 
133
124
  export interface Union_4$instance<T1, T2, T3, T4> {
134
- readonly __tsonic_type_Tsonic_Runtime_Union_4: never;
135
-
136
125
  As1(): T1;
137
126
  As2(): T2;
138
127
  As3(): T3;
@@ -143,8 +132,8 @@ export interface Union_4$instance<T1, T2, T3, T4> {
143
132
  Is2(): boolean;
144
133
  Is3(): boolean;
145
134
  Is4(): boolean;
146
- Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>): TResult;
147
- Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>): void;
135
+ Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>): TResult;
136
+ Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>): void;
148
137
  ToString(): string | undefined;
149
138
  TryAs1(value: T1): boolean;
150
139
  TryAs2(value: T2): boolean;
@@ -154,6 +143,7 @@ export interface Union_4$instance<T1, T2, T3, T4> {
154
143
 
155
144
 
156
145
  export const Union_4: {
146
+ new<T1, T2, T3, T4>(): Union_4<T1, T2, T3, T4>;
157
147
  From1<T1, T2, T3, T4>(value: T1): Union_4<T1, T2, T3, T4>;
158
148
  From2<T1, T2, T3, T4>(value: T2): Union_4<T1, T2, T3, T4>;
159
149
  From3<T1, T2, T3, T4>(value: T3): Union_4<T1, T2, T3, T4>;
@@ -164,8 +154,6 @@ export const Union_4: {
164
154
  export type Union_4<T1, T2, T3, T4> = Union_4$instance<T1, T2, T3, T4>;
165
155
 
166
156
  export interface Union_5$instance<T1, T2, T3, T4, T5> {
167
- readonly __tsonic_type_Tsonic_Runtime_Union_5: never;
168
-
169
157
  As1(): T1;
170
158
  As2(): T2;
171
159
  As3(): T3;
@@ -178,8 +166,8 @@ export interface Union_5$instance<T1, T2, T3, T4, T5> {
178
166
  Is3(): boolean;
179
167
  Is4(): boolean;
180
168
  Is5(): boolean;
181
- Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>, onT5: Func_2<T5, TResult>): TResult;
182
- Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>, onT5: Action_1<T5>): void;
169
+ Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>, onT5: Func<T5, TResult>): TResult;
170
+ Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>, onT5: Action<T5>): void;
183
171
  ToString(): string | undefined;
184
172
  TryAs1(value: T1): boolean;
185
173
  TryAs2(value: T2): boolean;
@@ -190,6 +178,7 @@ export interface Union_5$instance<T1, T2, T3, T4, T5> {
190
178
 
191
179
 
192
180
  export const Union_5: {
181
+ new<T1, T2, T3, T4, T5>(): Union_5<T1, T2, T3, T4, T5>;
193
182
  From1<T1, T2, T3, T4, T5>(value: T1): Union_5<T1, T2, T3, T4, T5>;
194
183
  From2<T1, T2, T3, T4, T5>(value: T2): Union_5<T1, T2, T3, T4, T5>;
195
184
  From3<T1, T2, T3, T4, T5>(value: T3): Union_5<T1, T2, T3, T4, T5>;
@@ -201,8 +190,6 @@ export const Union_5: {
201
190
  export type Union_5<T1, T2, T3, T4, T5> = Union_5$instance<T1, T2, T3, T4, T5>;
202
191
 
203
192
  export interface Union_6$instance<T1, T2, T3, T4, T5, T6> {
204
- readonly __tsonic_type_Tsonic_Runtime_Union_6: never;
205
-
206
193
  As1(): T1;
207
194
  As2(): T2;
208
195
  As3(): T3;
@@ -217,8 +204,8 @@ export interface Union_6$instance<T1, T2, T3, T4, T5, T6> {
217
204
  Is4(): boolean;
218
205
  Is5(): boolean;
219
206
  Is6(): boolean;
220
- Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>, onT5: Func_2<T5, TResult>, onT6: Func_2<T6, TResult>): TResult;
221
- Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>, onT5: Action_1<T5>, onT6: Action_1<T6>): void;
207
+ Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>, onT5: Func<T5, TResult>, onT6: Func<T6, TResult>): TResult;
208
+ Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>, onT5: Action<T5>, onT6: Action<T6>): void;
222
209
  ToString(): string | undefined;
223
210
  TryAs1(value: T1): boolean;
224
211
  TryAs2(value: T2): boolean;
@@ -230,6 +217,7 @@ export interface Union_6$instance<T1, T2, T3, T4, T5, T6> {
230
217
 
231
218
 
232
219
  export const Union_6: {
220
+ new<T1, T2, T3, T4, T5, T6>(): Union_6<T1, T2, T3, T4, T5, T6>;
233
221
  From1<T1, T2, T3, T4, T5, T6>(value: T1): Union_6<T1, T2, T3, T4, T5, T6>;
234
222
  From2<T1, T2, T3, T4, T5, T6>(value: T2): Union_6<T1, T2, T3, T4, T5, T6>;
235
223
  From3<T1, T2, T3, T4, T5, T6>(value: T3): Union_6<T1, T2, T3, T4, T5, T6>;
@@ -242,8 +230,6 @@ export const Union_6: {
242
230
  export type Union_6<T1, T2, T3, T4, T5, T6> = Union_6$instance<T1, T2, T3, T4, T5, T6>;
243
231
 
244
232
  export interface Union_7$instance<T1, T2, T3, T4, T5, T6, T7> {
245
- readonly __tsonic_type_Tsonic_Runtime_Union_7: never;
246
-
247
233
  As1(): T1;
248
234
  As2(): T2;
249
235
  As3(): T3;
@@ -260,8 +246,8 @@ export interface Union_7$instance<T1, T2, T3, T4, T5, T6, T7> {
260
246
  Is5(): boolean;
261
247
  Is6(): boolean;
262
248
  Is7(): boolean;
263
- Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>, onT5: Func_2<T5, TResult>, onT6: Func_2<T6, TResult>, onT7: Func_2<T7, TResult>): TResult;
264
- Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>, onT5: Action_1<T5>, onT6: Action_1<T6>, onT7: Action_1<T7>): void;
249
+ Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>, onT5: Func<T5, TResult>, onT6: Func<T6, TResult>, onT7: Func<T7, TResult>): TResult;
250
+ Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>, onT5: Action<T5>, onT6: Action<T6>, onT7: Action<T7>): void;
265
251
  ToString(): string | undefined;
266
252
  TryAs1(value: T1): boolean;
267
253
  TryAs2(value: T2): boolean;
@@ -274,6 +260,7 @@ export interface Union_7$instance<T1, T2, T3, T4, T5, T6, T7> {
274
260
 
275
261
 
276
262
  export const Union_7: {
263
+ new<T1, T2, T3, T4, T5, T6, T7>(): Union_7<T1, T2, T3, T4, T5, T6, T7>;
277
264
  From1<T1, T2, T3, T4, T5, T6, T7>(value: T1): Union_7<T1, T2, T3, T4, T5, T6, T7>;
278
265
  From2<T1, T2, T3, T4, T5, T6, T7>(value: T2): Union_7<T1, T2, T3, T4, T5, T6, T7>;
279
266
  From3<T1, T2, T3, T4, T5, T6, T7>(value: T3): Union_7<T1, T2, T3, T4, T5, T6, T7>;
@@ -287,8 +274,6 @@ export const Union_7: {
287
274
  export type Union_7<T1, T2, T3, T4, T5, T6, T7> = Union_7$instance<T1, T2, T3, T4, T5, T6, T7>;
288
275
 
289
276
  export interface Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8> {
290
- readonly __tsonic_type_Tsonic_Runtime_Union_8: never;
291
-
292
277
  As1(): T1;
293
278
  As2(): T2;
294
279
  As3(): T3;
@@ -307,8 +292,8 @@ export interface Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8> {
307
292
  Is6(): boolean;
308
293
  Is7(): boolean;
309
294
  Is8(): boolean;
310
- Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>, onT5: Func_2<T5, TResult>, onT6: Func_2<T6, TResult>, onT7: Func_2<T7, TResult>, onT8: Func_2<T8, TResult>): TResult;
311
- Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>, onT5: Action_1<T5>, onT6: Action_1<T6>, onT7: Action_1<T7>, onT8: Action_1<T8>): void;
295
+ Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>, onT5: Func<T5, TResult>, onT6: Func<T6, TResult>, onT7: Func<T7, TResult>, onT8: Func<T8, TResult>): TResult;
296
+ Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>, onT5: Action<T5>, onT6: Action<T6>, onT7: Action<T7>, onT8: Action<T8>): void;
312
297
  ToString(): string | undefined;
313
298
  TryAs1(value: T1): boolean;
314
299
  TryAs2(value: T2): boolean;
@@ -322,6 +307,7 @@ export interface Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8> {
322
307
 
323
308
 
324
309
  export const Union_8: {
310
+ new<T1, T2, T3, T4, T5, T6, T7, T8>(): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
325
311
  From1<T1, T2, T3, T4, T5, T6, T7, T8>(value: T1): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
326
312
  From2<T1, T2, T3, T4, T5, T6, T7, T8>(value: T2): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
327
313
  From3<T1, T2, T3, T4, T5, T6, T7, T8>(value: T3): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
@@ -336,8 +322,8 @@ export const Union_8: {
336
322
  export type Union_8<T1, T2, T3, T4, T5, T6, T7, T8> = Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8>;
337
323
 
338
324
  export abstract class ArrayHelpers$instance {
339
- static Slice<T>(source: IEnumerable_1<T>, startIndex: int): T[];
340
- static Slice<T>(source: IList_1<T>, startIndex: int): T[];
325
+ static Slice<T>(source: IEnumerable<T>, startIndex: int): T[];
326
+ static Slice<T>(source: IList<T>, startIndex: int): T[];
341
327
  static Slice<T>(source: T[], startIndex: int): T[];
342
328
  }
343
329
 
@@ -354,9 +340,9 @@ export type Operators = Operators$instance;
354
340
 
355
341
  export abstract class Structural$instance {
356
342
  static Clone<T>(source: unknown): T | undefined;
357
- static CloneFromDictionary<T>(source: Dictionary_2<System_Internal.String, unknown>): T | undefined;
358
- static CreateDictionaryAdapter<T>(source: Dictionary_2<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
359
- static ToDictionary(source: unknown): Dictionary_2<System_Internal.String, unknown | undefined>;
343
+ static CloneFromDictionary<T>(source: Dictionary<System_Internal.String, unknown>): T | undefined;
344
+ static CreateDictionaryAdapter<T>(source: Dictionary<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
345
+ static ToDictionary(source: unknown): Dictionary<System_Internal.String, unknown | undefined>;
360
346
  }
361
347
 
362
348