@tsonic/core 10.0.11 → 10.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/package.json +2 -2
- package/runtime/bindings.json +243 -34
- package/runtime/internal/index.d.ts +52 -40
|
@@ -9,11 +9,15 @@ 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 {
|
|
13
|
-
import * as System_Internal from "@tsonic/dotnet/System.js";
|
|
14
|
-
import type {
|
|
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";
|
|
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
|
+
|
|
17
21
|
readonly done: boolean;
|
|
18
22
|
Done: boolean;
|
|
19
23
|
readonly value: T;
|
|
@@ -34,50 +38,53 @@ export const IteratorResult_1: {
|
|
|
34
38
|
export type IteratorResult_1<T> = IteratorResult_1$instance<T>;
|
|
35
39
|
|
|
36
40
|
export interface DictionaryAdapter_1$instance<T> {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
readonly
|
|
41
|
+
readonly __tsonic_type_Tsonic_Runtime_DictionaryAdapter_1: never;
|
|
42
|
+
|
|
43
|
+
readonly Keys: IEnumerable_1<System_Internal.String>;
|
|
44
|
+
readonly Values: IEnumerable_1<T | undefined>;
|
|
40
45
|
ContainsKey(key: string): boolean;
|
|
41
|
-
GetDictionary():
|
|
46
|
+
GetDictionary(): Dictionary_2<System_Internal.String, unknown | undefined>;
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
|
|
45
50
|
export const DictionaryAdapter_1: {
|
|
46
|
-
new<T>(dictionary:
|
|
51
|
+
new<T>(dictionary: Dictionary_2<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
|
|
47
52
|
};
|
|
48
53
|
|
|
49
54
|
|
|
50
|
-
export type DictionaryAdapter_1<T> = DictionaryAdapter_1$instance<T
|
|
55
|
+
export type DictionaryAdapter_1<T> = DictionaryAdapter_1$instance<T> & { [key: string]: T | undefined; };
|
|
51
56
|
|
|
52
57
|
export interface DynamicObject$instance {
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
readonly __tsonic_type_Tsonic_Runtime_DynamicObject: never;
|
|
59
|
+
|
|
55
60
|
GetKeys(): string[];
|
|
56
61
|
GetProperty<T>(key: string): T | undefined;
|
|
57
62
|
GetValues(): (unknown | undefined)[];
|
|
58
63
|
HasProperty(key: string): boolean;
|
|
59
64
|
SetProperty(key: string, value: unknown): void;
|
|
60
|
-
ToDictionary():
|
|
65
|
+
ToDictionary(): Dictionary_2<System_Internal.String, unknown | undefined>;
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
|
|
64
69
|
export const DynamicObject: {
|
|
65
70
|
new(): DynamicObject;
|
|
66
|
-
FromDictionary(properties:
|
|
71
|
+
FromDictionary(properties: Dictionary_2<System_Internal.String, unknown>): DynamicObject;
|
|
67
72
|
};
|
|
68
73
|
|
|
69
74
|
|
|
70
|
-
export type DynamicObject = DynamicObject$instance;
|
|
75
|
+
export type DynamicObject = DynamicObject$instance & { [key: string]: unknown | undefined; };
|
|
71
76
|
|
|
72
77
|
export interface Union_2$instance<T1, T2> {
|
|
78
|
+
readonly __tsonic_type_Tsonic_Runtime_Union_2: never;
|
|
79
|
+
|
|
73
80
|
As1(): T1;
|
|
74
81
|
As2(): T2;
|
|
75
82
|
Equals(obj: unknown): boolean;
|
|
76
83
|
GetHashCode(): int;
|
|
77
84
|
Is1(): boolean;
|
|
78
85
|
Is2(): boolean;
|
|
79
|
-
Match<TResult>(onT1:
|
|
80
|
-
Match(onT1:
|
|
86
|
+
Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>): TResult;
|
|
87
|
+
Match(onT1: Action_1<T1>, onT2: Action_1<T2>): void;
|
|
81
88
|
ToString(): string | undefined;
|
|
82
89
|
TryAs1(value: T1): boolean;
|
|
83
90
|
TryAs2(value: T2): boolean;
|
|
@@ -85,7 +92,6 @@ export interface Union_2$instance<T1, T2> {
|
|
|
85
92
|
|
|
86
93
|
|
|
87
94
|
export const Union_2: {
|
|
88
|
-
new<T1, T2>(): Union_2<T1, T2>;
|
|
89
95
|
From1<T1, T2>(value: T1): Union_2<T1, T2>;
|
|
90
96
|
From2<T1, T2>(value: T2): Union_2<T1, T2>;
|
|
91
97
|
};
|
|
@@ -94,6 +100,8 @@ export const Union_2: {
|
|
|
94
100
|
export type Union_2<T1, T2> = Union_2$instance<T1, T2>;
|
|
95
101
|
|
|
96
102
|
export interface Union_3$instance<T1, T2, T3> {
|
|
103
|
+
readonly __tsonic_type_Tsonic_Runtime_Union_3: never;
|
|
104
|
+
|
|
97
105
|
As1(): T1;
|
|
98
106
|
As2(): T2;
|
|
99
107
|
As3(): T3;
|
|
@@ -102,8 +110,8 @@ export interface Union_3$instance<T1, T2, T3> {
|
|
|
102
110
|
Is1(): boolean;
|
|
103
111
|
Is2(): boolean;
|
|
104
112
|
Is3(): boolean;
|
|
105
|
-
Match<TResult>(onT1:
|
|
106
|
-
Match(onT1:
|
|
113
|
+
Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>): TResult;
|
|
114
|
+
Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>): void;
|
|
107
115
|
ToString(): string | undefined;
|
|
108
116
|
TryAs1(value: T1): boolean;
|
|
109
117
|
TryAs2(value: T2): boolean;
|
|
@@ -112,7 +120,6 @@ export interface Union_3$instance<T1, T2, T3> {
|
|
|
112
120
|
|
|
113
121
|
|
|
114
122
|
export const Union_3: {
|
|
115
|
-
new<T1, T2, T3>(): Union_3<T1, T2, T3>;
|
|
116
123
|
From1<T1, T2, T3>(value: T1): Union_3<T1, T2, T3>;
|
|
117
124
|
From2<T1, T2, T3>(value: T2): Union_3<T1, T2, T3>;
|
|
118
125
|
From3<T1, T2, T3>(value: T3): Union_3<T1, T2, T3>;
|
|
@@ -122,6 +129,8 @@ export const Union_3: {
|
|
|
122
129
|
export type Union_3<T1, T2, T3> = Union_3$instance<T1, T2, T3>;
|
|
123
130
|
|
|
124
131
|
export interface Union_4$instance<T1, T2, T3, T4> {
|
|
132
|
+
readonly __tsonic_type_Tsonic_Runtime_Union_4: never;
|
|
133
|
+
|
|
125
134
|
As1(): T1;
|
|
126
135
|
As2(): T2;
|
|
127
136
|
As3(): T3;
|
|
@@ -132,8 +141,8 @@ export interface Union_4$instance<T1, T2, T3, T4> {
|
|
|
132
141
|
Is2(): boolean;
|
|
133
142
|
Is3(): boolean;
|
|
134
143
|
Is4(): boolean;
|
|
135
|
-
Match<TResult>(onT1:
|
|
136
|
-
Match(onT1:
|
|
144
|
+
Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>): TResult;
|
|
145
|
+
Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>): void;
|
|
137
146
|
ToString(): string | undefined;
|
|
138
147
|
TryAs1(value: T1): boolean;
|
|
139
148
|
TryAs2(value: T2): boolean;
|
|
@@ -143,7 +152,6 @@ export interface Union_4$instance<T1, T2, T3, T4> {
|
|
|
143
152
|
|
|
144
153
|
|
|
145
154
|
export const Union_4: {
|
|
146
|
-
new<T1, T2, T3, T4>(): Union_4<T1, T2, T3, T4>;
|
|
147
155
|
From1<T1, T2, T3, T4>(value: T1): Union_4<T1, T2, T3, T4>;
|
|
148
156
|
From2<T1, T2, T3, T4>(value: T2): Union_4<T1, T2, T3, T4>;
|
|
149
157
|
From3<T1, T2, T3, T4>(value: T3): Union_4<T1, T2, T3, T4>;
|
|
@@ -154,6 +162,8 @@ export const Union_4: {
|
|
|
154
162
|
export type Union_4<T1, T2, T3, T4> = Union_4$instance<T1, T2, T3, T4>;
|
|
155
163
|
|
|
156
164
|
export interface Union_5$instance<T1, T2, T3, T4, T5> {
|
|
165
|
+
readonly __tsonic_type_Tsonic_Runtime_Union_5: never;
|
|
166
|
+
|
|
157
167
|
As1(): T1;
|
|
158
168
|
As2(): T2;
|
|
159
169
|
As3(): T3;
|
|
@@ -166,8 +176,8 @@ export interface Union_5$instance<T1, T2, T3, T4, T5> {
|
|
|
166
176
|
Is3(): boolean;
|
|
167
177
|
Is4(): boolean;
|
|
168
178
|
Is5(): boolean;
|
|
169
|
-
Match<TResult>(onT1:
|
|
170
|
-
Match(onT1:
|
|
179
|
+
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;
|
|
180
|
+
Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>, onT5: Action_1<T5>): void;
|
|
171
181
|
ToString(): string | undefined;
|
|
172
182
|
TryAs1(value: T1): boolean;
|
|
173
183
|
TryAs2(value: T2): boolean;
|
|
@@ -178,7 +188,6 @@ export interface Union_5$instance<T1, T2, T3, T4, T5> {
|
|
|
178
188
|
|
|
179
189
|
|
|
180
190
|
export const Union_5: {
|
|
181
|
-
new<T1, T2, T3, T4, T5>(): Union_5<T1, T2, T3, T4, T5>;
|
|
182
191
|
From1<T1, T2, T3, T4, T5>(value: T1): Union_5<T1, T2, T3, T4, T5>;
|
|
183
192
|
From2<T1, T2, T3, T4, T5>(value: T2): Union_5<T1, T2, T3, T4, T5>;
|
|
184
193
|
From3<T1, T2, T3, T4, T5>(value: T3): Union_5<T1, T2, T3, T4, T5>;
|
|
@@ -190,6 +199,8 @@ export const Union_5: {
|
|
|
190
199
|
export type Union_5<T1, T2, T3, T4, T5> = Union_5$instance<T1, T2, T3, T4, T5>;
|
|
191
200
|
|
|
192
201
|
export interface Union_6$instance<T1, T2, T3, T4, T5, T6> {
|
|
202
|
+
readonly __tsonic_type_Tsonic_Runtime_Union_6: never;
|
|
203
|
+
|
|
193
204
|
As1(): T1;
|
|
194
205
|
As2(): T2;
|
|
195
206
|
As3(): T3;
|
|
@@ -204,8 +215,8 @@ export interface Union_6$instance<T1, T2, T3, T4, T5, T6> {
|
|
|
204
215
|
Is4(): boolean;
|
|
205
216
|
Is5(): boolean;
|
|
206
217
|
Is6(): boolean;
|
|
207
|
-
Match<TResult>(onT1:
|
|
208
|
-
Match(onT1:
|
|
218
|
+
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;
|
|
219
|
+
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;
|
|
209
220
|
ToString(): string | undefined;
|
|
210
221
|
TryAs1(value: T1): boolean;
|
|
211
222
|
TryAs2(value: T2): boolean;
|
|
@@ -217,7 +228,6 @@ export interface Union_6$instance<T1, T2, T3, T4, T5, T6> {
|
|
|
217
228
|
|
|
218
229
|
|
|
219
230
|
export const Union_6: {
|
|
220
|
-
new<T1, T2, T3, T4, T5, T6>(): Union_6<T1, T2, T3, T4, T5, T6>;
|
|
221
231
|
From1<T1, T2, T3, T4, T5, T6>(value: T1): Union_6<T1, T2, T3, T4, T5, T6>;
|
|
222
232
|
From2<T1, T2, T3, T4, T5, T6>(value: T2): Union_6<T1, T2, T3, T4, T5, T6>;
|
|
223
233
|
From3<T1, T2, T3, T4, T5, T6>(value: T3): Union_6<T1, T2, T3, T4, T5, T6>;
|
|
@@ -230,6 +240,8 @@ export const Union_6: {
|
|
|
230
240
|
export type Union_6<T1, T2, T3, T4, T5, T6> = Union_6$instance<T1, T2, T3, T4, T5, T6>;
|
|
231
241
|
|
|
232
242
|
export interface Union_7$instance<T1, T2, T3, T4, T5, T6, T7> {
|
|
243
|
+
readonly __tsonic_type_Tsonic_Runtime_Union_7: never;
|
|
244
|
+
|
|
233
245
|
As1(): T1;
|
|
234
246
|
As2(): T2;
|
|
235
247
|
As3(): T3;
|
|
@@ -246,8 +258,8 @@ export interface Union_7$instance<T1, T2, T3, T4, T5, T6, T7> {
|
|
|
246
258
|
Is5(): boolean;
|
|
247
259
|
Is6(): boolean;
|
|
248
260
|
Is7(): boolean;
|
|
249
|
-
Match<TResult>(onT1:
|
|
250
|
-
Match(onT1:
|
|
261
|
+
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;
|
|
262
|
+
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;
|
|
251
263
|
ToString(): string | undefined;
|
|
252
264
|
TryAs1(value: T1): boolean;
|
|
253
265
|
TryAs2(value: T2): boolean;
|
|
@@ -260,7 +272,6 @@ export interface Union_7$instance<T1, T2, T3, T4, T5, T6, T7> {
|
|
|
260
272
|
|
|
261
273
|
|
|
262
274
|
export const Union_7: {
|
|
263
|
-
new<T1, T2, T3, T4, T5, T6, T7>(): Union_7<T1, T2, T3, T4, T5, T6, T7>;
|
|
264
275
|
From1<T1, T2, T3, T4, T5, T6, T7>(value: T1): Union_7<T1, T2, T3, T4, T5, T6, T7>;
|
|
265
276
|
From2<T1, T2, T3, T4, T5, T6, T7>(value: T2): Union_7<T1, T2, T3, T4, T5, T6, T7>;
|
|
266
277
|
From3<T1, T2, T3, T4, T5, T6, T7>(value: T3): Union_7<T1, T2, T3, T4, T5, T6, T7>;
|
|
@@ -274,6 +285,8 @@ export const Union_7: {
|
|
|
274
285
|
export type Union_7<T1, T2, T3, T4, T5, T6, T7> = Union_7$instance<T1, T2, T3, T4, T5, T6, T7>;
|
|
275
286
|
|
|
276
287
|
export interface Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8> {
|
|
288
|
+
readonly __tsonic_type_Tsonic_Runtime_Union_8: never;
|
|
289
|
+
|
|
277
290
|
As1(): T1;
|
|
278
291
|
As2(): T2;
|
|
279
292
|
As3(): T3;
|
|
@@ -292,8 +305,8 @@ export interface Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8> {
|
|
|
292
305
|
Is6(): boolean;
|
|
293
306
|
Is7(): boolean;
|
|
294
307
|
Is8(): boolean;
|
|
295
|
-
Match<TResult>(onT1:
|
|
296
|
-
Match(onT1:
|
|
308
|
+
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;
|
|
309
|
+
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;
|
|
297
310
|
ToString(): string | undefined;
|
|
298
311
|
TryAs1(value: T1): boolean;
|
|
299
312
|
TryAs2(value: T2): boolean;
|
|
@@ -307,7 +320,6 @@ export interface Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8> {
|
|
|
307
320
|
|
|
308
321
|
|
|
309
322
|
export const Union_8: {
|
|
310
|
-
new<T1, T2, T3, T4, T5, T6, T7, T8>(): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
|
|
311
323
|
From1<T1, T2, T3, T4, T5, T6, T7, T8>(value: T1): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
|
|
312
324
|
From2<T1, T2, T3, T4, T5, T6, T7, T8>(value: T2): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
|
|
313
325
|
From3<T1, T2, T3, T4, T5, T6, T7, T8>(value: T3): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
|
|
@@ -322,8 +334,8 @@ export const Union_8: {
|
|
|
322
334
|
export type Union_8<T1, T2, T3, T4, T5, T6, T7, T8> = Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8>;
|
|
323
335
|
|
|
324
336
|
export abstract class ArrayHelpers$instance {
|
|
325
|
-
static Slice<T>(source:
|
|
326
|
-
static Slice<T>(source:
|
|
337
|
+
static Slice<T>(source: IEnumerable_1<T>, startIndex: int): T[];
|
|
338
|
+
static Slice<T>(source: IList_1<T>, startIndex: int): T[];
|
|
327
339
|
static Slice<T>(source: T[], startIndex: int): T[];
|
|
328
340
|
}
|
|
329
341
|
|
|
@@ -340,9 +352,9 @@ export type Operators = Operators$instance;
|
|
|
340
352
|
|
|
341
353
|
export abstract class Structural$instance {
|
|
342
354
|
static Clone<T>(source: unknown): T | undefined;
|
|
343
|
-
static CloneFromDictionary<T>(source:
|
|
344
|
-
static CreateDictionaryAdapter<T>(source:
|
|
345
|
-
static ToDictionary(source: unknown):
|
|
355
|
+
static CloneFromDictionary<T>(source: Dictionary_2<System_Internal.String, unknown>): T | undefined;
|
|
356
|
+
static CreateDictionaryAdapter<T>(source: Dictionary_2<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
|
|
357
|
+
static ToDictionary(source: unknown): Dictionary_2<System_Internal.String, unknown | undefined>;
|
|
346
358
|
}
|
|
347
359
|
|
|
348
360
|
|